Sage Modeling and Simulation Library

EnumStateMachine<(Of <(<'TEnum>)>)> Members

The EnumStateMachine<(Of <(<'TEnum>)>)> type exposes the following members.

Constructors


  Name Description
Public method EnumStateMachine<(Of <(<'TEnum>)>)>
Initializes a new instance of the EnumStateMachine<(Of <(<'TEnum>)>)> class.

Methods


  Name Description
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method TimeSpentInState
The amount of time the machine spent in the specified state.
Public method ToState
Transitions the state of this machine to the specified state.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property CurrentState
Gets the current state of the machine.
Public property StateTimes
Gets the state times in a dictionary of DateTimes, keyed on the enum value that represents the state.
Public property Transitions
Gets the list of transitions experienced in the last run of the executive.