Show / Hide Table of Contents

Class CurrentControlledBindingContext

A binding context for controlled sources.

Inheritance
object
BindingContext
ComponentBindingContext
CurrentControlledBindingContext
CurrentSwitchBindingContext
Implements
ICurrentControlledBindingContext
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.CommonBehaviors
Assembly: SpiceSharp.dll
Syntax
[BindingContextFor(typeof(CurrentControlledCurrentSource))]
[BindingContextFor(typeof(CurrentControlledVoltageSource))]
public class CurrentControlledBindingContext : ComponentBindingContext, ICurrentControlledBindingContext, IComponentBindingContext, IBindingContext

Constructors

CurrentControlledBindingContext(ICurrentControllingComponent, ISimulation, IBehaviorContainer)

Initializes a new instance of the CurrentControlledBindingContext class.

Declaration
public CurrentControlledBindingContext(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 or simulation is null.

Properties

ControlBehaviors

Gets the behaviors of the controlling source.

Declaration
public IBehaviorContainer ControlBehaviors { get; }
Property Value
Type Description
IBehaviorContainer

The behaviors of the controlling source, or null if it wasn't found.

Implements

ICurrentControlledBindingContext
IComponentBindingContext
IBindingContext

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

ComponentBindingContext
ICurrentControlledBindingContext
In this article
Back to top Generated by DocFX