Sage Modeling and Simulation Library

StateMachine..::..DoTransition Method (Enum, Object)

Commands the state machine to attempt transition to the indicated state. Returns a list of ITransitionFailureReasons. If this list is empty, the transition was successful.

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)

Syntax


public IList DoTransition(
	Enum toWhatState,
	Object userData
)

Parameters

toWhatState
Type: Enum
The desired new state of the State Machine.
userData
Type: Object
The user data to pass into this transition request - it will be sent out of each state change notification and state method.

Return Value

A list of ITransitionFailureReasons. (Empty if successful.)