Interface IComponent
An interface that describes a component that can be connected in a circuit.
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public interface IComponent : IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>
Properties
Model
Gets or sets the name of the component model.
Declaration
string Model { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the component model. |
Nodes
Gets a list of all the nodes that the component is connected to.
Declaration
IReadOnlyList<string> Nodes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> | The nodes. |
Methods
Connect(params string[])
Connects the component in the circuit.
Declaration
IComponent Connect(params string[] nodes)
Parameters
Type | Name | Description |
---|---|---|
string[] | nodes | The node indices. |
Returns
Type | Description |
---|---|
IComponent | The instance calling the method for chaining. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
NodeMismatchException | Thrown if the number of nodes does not match the pin count of the component. |