Click or drag to resize
StaMaStateMachineTemplateTransition Method (String, String, Object)

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public void Transition(
	string name,
	string[] targetStates,
	Object triggerEvent
)

Parameters

name
Type: SystemString
A name that identifies the Transition for debugging and tracing purposes. Must be unique within the StateMachineTemplate.
targetStates
Type: SystemString
A list of names of State instances that define the target-State instances of the Transition. The targetStates collection must form a valid State configuration within this StateMachineTemplate.
triggerEvent
Type: SystemObject
A Object that represents the trigger event that will execute the transition or null to indicate an "any" transition. See also SendTriggerEvent(Object).
Exceptions
ExceptionCondition
ArgumentNullException The name is null or empty.
ArgumentOutOfRangeException The name is not a valid identifier for a Transition: The identifier of a Transition must start with a character followed by nonspace characters or digits.
ArgumentOutOfRangeException The name is not a unique: A Transition with the same name already exists within the StateMachineTemplate instance.
StateMachineException A syntax error was detected with this or the preceeding Region, EndRegion, State, EndState or Transition statements.
Remarks