Class EntitiesBehavior
A behavior that allows access to the entity behaviors inside the subcircuit.
Implements
Inherited Members
Namespace: SpiceSharp.Components.Subcircuits
Assembly: SpiceSharp.dll
Syntax
public class EntitiesBehavior : Behavior, IEntitiesBehavior, IBehavior, IParameterSetCollection, IExportPropertySet<IBehaviorContainerCollection>, IParameterSet
Constructors
EntitiesBehavior(SubcircuitBindingContext)
Initializes a new instance of the EntitiesBehavior class.
Declaration
public EntitiesBehavior(SubcircuitBindingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SubcircuitBindingContext | context | The context. |
Properties
LocalBehaviors
Gets the local simulation behaviors.
Declaration
[ParameterName("behaviors")]
[ParameterInfo("The behaviors inside the subcircuit", IsPrincipal = true)]
public IBehaviorContainerCollection LocalBehaviors { get; }
Property Value
| Type | Description |
|---|---|
| IBehaviorContainerCollection | The local behaviors. |
Methods
GetState<S>()
Gets a simulation state from a potentially local simulation.
Declaration
public S GetState<S>() where S : ISimulationState
Returns
| Type | Description |
|---|---|
| S | The simulation state. |
Type Parameters
| Name | Description |
|---|---|
| S | The simulation state type. |
TryGetState<S>(out S)
Tries to get a simulation state from a potentially local simulation.
Declaration
public bool TryGetState<S>(out S state) where S : ISimulationState
Parameters
| Type | Name | Description |
|---|---|---|
| S | state | The simulation state. |
Returns
| Type | Description |
|---|---|
| bool | Returns |
Type Parameters
| Name | Description |
|---|---|
| S | The simulation state type. |