Class VoltageDelay
A component that will drive an output to a delayed input voltage.
Inheritance
VoltageDelay
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "V+")]
[Pin(1, "V-")]
[Pin(2, "VC+")]
[Pin(3, "VC-")]
[Connected(0, 1)]
[VoltageDriver(0, 1)]
public class VoltageDelay : Component<Parameters>, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject, IParameterized<Parameters>
Constructors
VoltageDelay(string)
Initializes a new instance of the VoltageDelay class.
Declaration
public VoltageDelay(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the entity. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
VoltageDelay(string, string, string, string, string, double)
Initializes a new instance of the VoltageDelay class.
Declaration
public VoltageDelay(string name, string pos, string neg, string controlPos, string controlNeg, double delay)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the voltage-controlled voltage source. |
string | pos | The positive node. |
string | neg | The negative node. |
string | controlPos | The positive controlling node. |
string | controlNeg | The negative controlling node. |
double | delay | The delay. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
PinCount
The voltage delay pin count
Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int PinCount = 4
Field Value
Type | Description |
---|---|
int |
Methods
CreateBehaviors(ISimulation)
Creates the behaviors and stores them in the specified container.
Declaration
public override void CreateBehaviors(ISimulation simulation)
Parameters
Type | Name | Description |
---|---|---|
ISimulation | simulation | The simulation. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentException | Thrown if the simulation does not use an IComplexSimulationState. |
TypeNotFoundException | Thrown if a required behavior or parameter set could not be found. |
AmbiguousTypeException | Thrown if a behavior or parameter set could not be resolved unambiguously. |