Class ConstantNode
A constant node.
Implements
Inherited Members
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class ConstantNode : Node, IFormattable
Constructors
ConstantNode(Double)
Initializes a new instance of the ConstantNode class.
Declaration
protected ConstantNode(double literal)
Parameters
Type | Name | Description |
---|---|---|
System.Double | literal | The literal. |
Properties
AbsoluteTolerance
Gets or sets the absolute tolerance.
Declaration
public static double AbsoluteTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The absolute tolerance. |
Literal
Gets the literal.
Declaration
public double Literal { get; }
Property Value
Type | Description |
---|---|
System.Double | The literal. |
RelativeTolerance
Gets or sets the relative tolerance.
Declaration
public static double RelativeTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The relative tolerance. |
Methods
Constant(Double)
Creates a constant.
Declaration
public static ConstantNode Constant(double literal)
Parameters
Type | Name | Description |
---|---|---|
System.Double | literal | The value of the constant. |
Returns
Type | Description |
---|---|
ConstantNode | The node representing the constant value. |
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
ToString(String, IFormatProvider)
Converts to string.
Declaration
public string ToString(string format, IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.IFormatProvider | provider | The provider. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |