Class VoltageSwitchBindingContext
A binding context for a VoltageSwitch.
Inherited Members
Namespace: SpiceSharp.Components.Switches
Assembly: SpiceSharp.dll
Syntax
[BindingContextFor(typeof(VoltageSwitch))]
public class VoltageSwitchBindingContext : ComponentBindingContext, ISwitchBindingContext, IComponentBindingContext, IBindingContext
Constructors
VoltageSwitchBindingContext(IComponent, ISimulation, IBehaviorContainer)
Initializes a new instance of the VoltageSwitchBindingContext class.
Declaration
public VoltageSwitchBindingContext(IComponent component, ISimulation simulation, IBehaviorContainer behaviors)
Parameters
| Type | Name | Description |
|---|---|---|
| IComponent | component | The component creating the behavior. |
| ISimulation | simulation | The simulation for which a behavior is created. |
| IBehaviorContainer | behaviors | The behaviors created by the entity. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Properties
ControlValue
Gets the function that can return the controlling value.
Declaration
public Func<double> ControlValue { get; }
Property Value
| Type | Description |
|---|---|
| Func<double> | The controlling value. |