Sage Modeling and Simulation Library

EnumStateMachine<(Of <(<'TEnum>)>)>..::..ToState Method

Transitions the state of this machine to the specified state.

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

Syntax


public virtual bool ToState(
	TEnum toState
)

Parameters

toState
Type: TEnum
The requested destination state.

Return Value

true if the transition was successful, false otherwise.