Show / Hide Table of Contents

Class ModelBindingContext

Context for binding an IBehavior created by a Model to an ISimulation.

Inheritance
System.Object
BindingContext
ModelBindingContext
Implements
IBindingContext
Inherited Members
BindingContext.GetState<S>()
BindingContext.TryGetState<S>(S)
BindingContext.GetSimulationParameterSet<P>()
BindingContext.TryGetSimulationParameterSet<P>(P)
BindingContext.GetParameterSet<P>()
BindingContext.TryGetParameterSet<P>(P)
BindingContext.Simulation
BindingContext.Entity
BindingContext.Behaviors
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class ModelBindingContext : BindingContext, IBindingContext

Constructors

ModelBindingContext(IEntity, ISimulation, IBehaviorContainer, Boolean)

Initializes a new instance of the ModelBindingContext class.

Declaration
public ModelBindingContext(IEntity entity, ISimulation simulation, IBehaviorContainer behaviors, bool linkParameters)
Parameters
Type Name Description
IEntity entity

The entity creating the behavior.

ISimulation simulation

The simulation for which a behavior is created.

IBehaviorContainer behaviors

The created behaviors.

System.Boolean linkParameters

Flag indicating that parameters should be linked. If false, only cloned parameters are returned by the context.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if entity, simulation is null.

Implements

IBindingContext

Extension Methods

Utility.ThrowIfNull<T>(T, String)

See Also

BindingContext
Back to top Generated by DocFX