Interface IBehavioral
An interface that describes a class that can use behaviors.
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public interface IBehavioral
Properties
Behaviors
Gets all behavior types that are used by the class.
Declaration
IEnumerable<Type> Behaviors { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Type> | The behaviors. |
EntityBehaviors
Gets the entity behaviors.
Declaration
IBehaviorContainerCollection EntityBehaviors { get; }
Property Value
| Type | Description |
|---|---|
| IBehaviorContainerCollection | The entity behaviors. |
Methods
UsesBehavior(Type)
Checks if the class uses the specified behavior.
Declaration
bool UsesBehavior(Type types)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | types | The behavior (interface) type. |
Returns
| Type | Description |
|---|---|
| bool |
|
UsesBehaviors<B>()
Checks if the class uses the specified behaviors.
Declaration
bool UsesBehaviors<B>() where B : IBehavior
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| B | The behavior type. |