Class CurrentSwitchBindingContext
A binding context for a CurrentSwitch.
Inheritance
CurrentSwitchBindingContext
Implements
Inherited Members
Namespace: SpiceSharp.Components.Switches
Assembly: SpiceSharp.dll
Syntax
[BindingContextFor(typeof(CurrentSwitch))]
public class CurrentSwitchBindingContext : CurrentControlledBindingContext, ICurrentControlledBindingContext, ISwitchBindingContext, IComponentBindingContext, IBindingContext
Constructors
CurrentSwitchBindingContext(ICurrentControllingComponent, ISimulation, IBehaviorContainer)
Initializes a new instance of the CurrentSwitchBindingContext class.
Declaration
public CurrentSwitchBindingContext(ICurrentControllingComponent component, ISimulation simulation, IBehaviorContainer behaviors)
Parameters
| Type | Name | Description |
|---|---|---|
| ICurrentControllingComponent | component | The component that creates the behavior. |
| ISimulation | simulation | The simulation for which the behavior is created. |
| IBehaviorContainer | behaviors | The created behaviors. |
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. |