Class SubcircuitNodeNameGenerator
Inheritance
System.Object
SubcircuitNodeNameGenerator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.ModelReaders.Netlist.Spice.Context.Names
Assembly: SpiceSharpParser.dll
Syntax
public class SubcircuitNodeNameGenerator : INodeNameGenerator
Constructors
| Improve this Doc View SourceSubcircuitNodeNameGenerator(String, String, SubCircuit, List<String>, IEnumerable<String>, Boolean)
Initializes a new instance of the SubcircuitNodeNameGenerator class.
Declaration
public SubcircuitNodeNameGenerator(string subcircuitFullName, string subCircuitName, SubCircuit currentSubCircuit, List<string> pinInstanceNames, IEnumerable<string> globals, bool isNodeNameCaseSensitive)
Parameters
Type | Name | Description |
---|---|---|
System.String | subcircuitFullName | The fullname of subcircuit. |
System.String | subCircuitName | The name of subcircuit. |
SubCircuit | currentSubCircuit | The current subcircuit. |
System.Collections.Generic.List<System.String> | pinInstanceNames | The names of pins. |
System.Collections.Generic.IEnumerable<System.String> | globals | Global pin names. |
System.Boolean | isNodeNameCaseSensitive | Is node name case sensitive. |
Properties
| Improve this Doc View SourceChildren
Gets or sets children of node name generator.
Declaration
public List<INodeNameGenerator> Children { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<INodeNameGenerator> |
FullName
Gets or sets the full name.
Declaration
public string FullName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Globals
Gets the globals.
Declaration
public IEnumerable<string> Globals { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
IsNodeNameCaseSensitive
Declaration
public bool IsNodeNameCaseSensitive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PinInstanceNames
Gets the names of pins for the current subcircuit.
Declaration
public List<string> PinInstanceNames { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
PinMap
Declaration
public Dictionary<string, string> PinMap { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
RootName
Gets or sets the root name.
Declaration
public string RootName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SubCircuit
Gets the subcircuit of this node name generator.
Declaration
public SubCircuit SubCircuit { get; }
Property Value
Type | Description |
---|---|
SubCircuit |
Methods
| Improve this Doc View SourceGenerate(String)
Generates node name.
Declaration
public string Generate(string nodeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeName | Pin name. |
Returns
Type | Description |
---|---|
System.String | Node name. |
Parse(String)
Parses a path and generate a node name.
Declaration
public string Parse(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Node path. |
Returns
Type | Description |
---|---|
System.String | A node name. |
SetGlobal(String)
Makes a pin name a global pin name.
Declaration
public void SetGlobal(string pinName)
Parameters
Type | Name | Description |
---|---|---|
System.String | pinName | Pin name. |