Class VariableNode
A variable node.
Inherited Members
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class VariableNode : Node
Constructors
VariableNode(NodeTypes, String)
Initializes a new instance of the VariableNode class.
Declaration
protected VariableNode(NodeTypes type, string name)
Parameters
Type | Name | Description |
---|---|---|
NodeTypes | type | The node type. |
System.String | name | The name. |
Properties
Name
Gets the name of the variable.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the variable. |
Methods
Current(String)
Creates a current.
Declaration
public static VariableNode Current(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the entity that conducts the current. |
Returns
Type | Description |
---|---|
VariableNode | The node representing the current. |
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
Variable(String)
Creates a variable.
Declaration
public static VariableNode Variable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the variable. |
Returns
Type | Description |
---|---|
VariableNode | The node representing the variable. |
Voltage(String)
Creates a node voltage.
Declaration
public static VariableNode Voltage(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the node. |
Returns
Type | Description |
---|---|
VariableNode | The node representing the node voltage. |