Show / Hide Table of Contents

Class Biasing

Basing behavior for switches.

Inheritance
object
ParameterSet
ParameterSetCollection
Behavior
Biasing
Accept
Frequency
Implements
IBiasingBehavior
IBehavior
IParameterSetCollection
IParameterized<Parameters>
IExportPropertySet<bool>
IExportPropertySet<double>
IParameterSet
Inherited Members
Behavior.Name
ParameterSetCollection.GetParameterSet<P>()
ParameterSetCollection.TryGetParameterSet<P>(out P)
ParameterSetCollection.ParameterSets
ParameterSetCollection.SetParameter<P>(string, P)
ParameterSetCollection.TrySetParameter<P>(string, P)
ParameterSetCollection.GetProperty<P>(string)
ParameterSetCollection.TryGetProperty<P>(string, out P)
ParameterSetCollection.CreateParameterSetter<P>(string)
ParameterSetCollection.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 context is null.

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 true, the old state is used; otherwise false.

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.

Implements

IBiasingBehavior
IBehavior
IParameterSetCollection
IParameterized<P>
IExportPropertySet<P>
IExportPropertySet<P>
IParameterSet

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
Documentation.ParameterValues<T>(IParameterSetCollection, bool)
Documentation.Parameters(IParameterSetCollection)

See Also

Behavior
IBiasingBehavior
IParameterized<P>
Parameters
In this article
Back to top Generated by DocFX