Sage Modeling and Simulation Library

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

Creates a state machine that references a Model. Many of the event delegates send a model reference with the notification.

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


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


Type: Highpoint.Sage.SimCore..::..IModel
The model to which this State Machine belongs.
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.