Show / Hide Table of Contents

Class ComponentBindingContext

Context for binding an IBehavior created by an IComponent to an ISimulation.

Inheritance
object
BindingContext
ComponentBindingContext
CurrentControlledBindingContext
SubcircuitBindingContext
VoltageSwitchBindingContext
Implements
IComponentBindingContext
IBindingContext
Inherited Members
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
Assembly: SpiceSharp.dll
Syntax
[BindingContextFor(typeof(Component))]
public class ComponentBindingContext : BindingContext, IComponentBindingContext, IBindingContext

Constructors

ComponentBindingContext(IComponent, ISimulation, IBehaviorContainer)

Initializes a new instance of the BindingContext class.

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

Properties

ModelBehaviors

Gets the model behaviors.

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

The model behaviors.

Nodes

Gets the nodes that the component is connected to.

Declaration
public IReadOnlyList<string> Nodes { get; }
Property Value
Type Description
IReadOnlyList<string>

The pins.

Implements

IComponentBindingContext
IBindingContext

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

BindingContext
IComponentBindingContext
In this article
Back to top Generated by DocFX