Class ComponentBindingContext
Context for binding an IBehavior created by an IComponent to an ISimulation.
Inheritance
ComponentBindingContext
Inherited Members
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 |
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. |