Show / Hide Table of Contents

Class VoltageSwitchBindingContext

A binding context for a VoltageSwitch.

Inheritance
object
BindingContext
ComponentBindingContext
VoltageSwitchBindingContext
Implements
ISwitchBindingContext
IComponentBindingContext
IBindingContext
Inherited Members
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(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 simulation, component 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

ISwitchBindingContext
IComponentBindingContext
IBindingContext

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

ComponentBindingContext
ISwitchBindingContext
In this article
Back to top Generated by DocFX