Sage Modeling and Simulation Library

StateMachine..::..SetStateMethod Method

Sets the method that will be called when the state machine enters a given state.

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

Syntax


public StateMethod SetStateMethod(
	StateMethod newStateMethod,
	Enum forWhichState
)

Parameters

newStateMethod
Type: Highpoint.Sage.SimCore..::..StateMethod
The method to be called.
forWhichState
Type: Enum
The state in which the new method should be called.

Return Value

The old state method, or null if there was none assigned.