Click or drag to resize
StaMaStateMachine Methods

The StateMachine type exposes the following members.

Methods
  NameDescription
Public methodClearEventQueue
Discards any pending events in the event queue of the StateMachine.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFinish
Finalizes the StateMachine by executing the exit actions of all active states.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsInState
Returns whether the StateMachine resides in the given StateConfiguration.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleResume
Initializes the ActiveStateConfiguration and history settings from a Stream and resumes state machine execution with the stored state.
Public methodCode exampleSaveState
Saves the state machine active state and history to a Stream that may be used to resume with this state later e.g. after the hosting process has been restarted.
Public methodSendTriggerEvent(Object)
Enqueues a trigger event and starts processing the state machine, if not already inside a processing. As a result a transition may be executed by invoking exit actions, changing the active state and invoking entry actions.
Public methodSendTriggerEvent(Object, EventArgs)
Enqueues a trigger event together with additional parameters and starts processing the state machine, if not already inside a processing. As a result a transition may be executed by invoking exit actions, changing the active state and invoking entry actions.
Protected methodSetContext
Sets the context in case it is not available before construction of the StateMachine instance.
Public methodStartup
Brings the StateMachine in the initial state by invoking the entry actions of the initial states. Resets the event queue and initializes the history.
Public methodToString
Returns the human readable representation of the active state StateConfiguration of this StateMachine.
(Overrides ObjectToString.)
Top
See Also