Show / Hide Table of Contents

Class CurrentSwitchBindingContext

A binding context for a CurrentSwitch.

Inheritance
object
BindingContext
ComponentBindingContext
CurrentControlledBindingContext
CurrentSwitchBindingContext
Implements
ICurrentControlledBindingContext
ISwitchBindingContext
IComponentBindingContext
IBindingContext
Inherited Members
CurrentControlledBindingContext.ControlBehaviors
ComponentBindingContext.ModelBehaviors
ComponentBindingContext.Nodes
BindingContext.Simulation
BindingContext.Entity
BindingContext.Behaviors
BindingContext.GetState<S>()
BindingContext.TryGetState<S>(out S)
BindingContext.UsesState<S>()
BindingContext.GetSimulationParameterSet<P>()
BindingContext.TryGetSimulationParameterSet<P>(out P)
BindingContext.GetParameterSet<P>()
BindingContext.TryGetParameterSet<P>(out P)
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
[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 component, simulation or behaviors is null.

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.

Implements

ICurrentControlledBindingContext
ISwitchBindingContext
IComponentBindingContext
IBindingContext

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

CurrentControlledBindingContext
In this article
Back to top Generated by DocFX