Interface IEntitiesBehavior
A description of a behavior that allows access to any local behaviors.
Inherited Members
Namespace: SpiceSharp.Components.Common
Assembly: SpiceSharp.dll
Syntax
public interface IEntitiesBehavior : IBehavior, IParameterSetCollection, IParameterSet
Properties
LocalBehaviors
Gets the local simulation behaviors.
Declaration
IBehaviorContainerCollection LocalBehaviors { get; }
Property Value
| Type | Description |
|---|---|
| IBehaviorContainerCollection | The local behaviors. |
Methods
GetState<S>()
Gets a simulation state from a potentially local simulation.
Declaration
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
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. |