Class Biasing
Basing behavior for switches.
Implements
Inherited Members
Namespace: SpiceSharp.Components.Switches
Assembly: SpiceSharp.dll
Syntax
[BehaviorFor(typeof(CurrentSwitch))]
[BehaviorFor(typeof(VoltageSwitch))]
[AddBehaviorIfNo(typeof(IBiasingBehavior))]
public class Biasing : Behavior, IBiasingBehavior, IBehavior, IParameterSetCollection, IParameterized<Parameters>, IExportPropertySet<bool>, IExportPropertySet<double>, IParameterSet
Constructors
Biasing(ISwitchBindingContext)
Initializes a new instance of the Biasing class.
Declaration
public Biasing(ISwitchBindingContext context)
Parameters
Type | Name | Description |
---|---|---|
ISwitchBindingContext | context | The context. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
ModelTemperature
The model temperature behavior.
Declaration
protected readonly ModelTemperature ModelTemperature
Field Value
Type | Description |
---|---|
ModelTemperature |
Properties
Conductance
Gets the currently active conductance.
Declaration
public double Conductance { get; }
Property Value
Type | Description |
---|---|
double | The current conductance of the switch. |
Current
Gets the DC or instantaneous current through the device.
Declaration
[ParameterName("i")]
[ParameterName("c")]
[ParameterInfo("Switch current")]
public double Current { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous current. |
CurrentState
Gets the current state of the switch.
Declaration
[ParameterName("state")]
[ParameterInfo("The current state of the switch.")]
public bool CurrentState { get; protected set; }
Property Value
Type | Description |
---|---|
bool | The current state of the switch. |
Parameters
Gets the parameter set.
Declaration
public Parameters Parameters { get; }
Property Value
Type | Description |
---|---|
Parameters | The parameter set. |
Power
Gets the DC or instantaneous power dissipation by the device.
Declaration
[ParameterName("p")]
[ParameterInfo("Instantaneous power")]
public double Power { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous power dissipation. |
PreviousState
Gets or sets the old state of the switch.
Declaration
protected bool PreviousState { get; set; }
Property Value
Type | Description |
---|---|
bool | The old state of the switch. |
UseOldState
Flag for using the old state or not.
Declaration
protected bool UseOldState { get; set; }
Property Value
Type | Description |
---|---|
bool | If |
Voltage
Gets the DC or instantaneous voltage over the device.
Declaration
[ParameterName("v")]
[ParameterInfo("Switch voltage")]
public double Voltage { get; }
Property Value
Type | Description |
---|---|
double | The DC or instantaneous voltage. |