Sage Modeling and Simulation Library

StateMachine Constructor (array<Boolean,2>[,](,)[,][,], array<Enum>[]()[][], Enum)

Creates a state machine that does not reference a Model. Many of the event delegates send a model reference with the notification. If the recipients all either (a) don't need this reference, (b) have it from elsewhere, or (c) the entity creating this state machine will set the Model later, then this constructor may be used.

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


public StateMachine(
	bool[,] transitionMatrix,
	Enum[] followOnStates,
	Enum initialState


Type: array<Boolean,2>[,](,)[,][,]
A matrix of booleans. 'From' states are the row indices, and 'To' states are the column indices. The contents of a given cell in the matrix indicates whether that transition is permissible.
Type: array<Enum>[]()[][]
An array of enumerations of states, indicating which transition should occur automatically, if any, after transition into a given state has completed successfully.
Type: Enum
Specifies the state in the state machine that is to be the initial state.