Class VoltageDriverAttribute
Indicates that two nodes are driven by a voltage source. This attribute can be applied to a Component to check for voltage loops.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class VoltageDriverAttribute : Attribute
Constructors
VoltageDriverAttribute(int, int)
Initializes a new instance of the VoltageDriverAttribute class.
Declaration
public VoltageDriverAttribute(int positive, int negative)
Parameters
Type | Name | Description |
---|---|---|
int | positive | The positive pin of the source. |
int | negative | The negative pin of the source. |
Properties
Negative
The pin connected to the negative side of the voltage source.
Declaration
public int Negative { get; }
Property Value
Type | Description |
---|---|
int |
Positive
The pin connected to the positive side of the voltage source.
Declaration
public int Positive { get; }
Property Value
Type | Description |
---|---|
int |