Click or drag to resize
StaMaStateMachineTraceStateChange Property
Gets or sets a callback that can be used for tracing state changes in the StateMachine.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public StateMachineTraceStateChangeEventHandler TraceStateChange { get; set; }

Property Value

Type: StateMachineTraceStateChangeEventHandler
Remarks
The delegate will be called when the StateMachine changes its active state.

The StateMachine passes the following parameters to the callback:

  1. The StateMachine instance that changes the state.
  2. The StateConfiguration instance that represents the old state.
  3. The StateConfiguration instance that represents the new state.
  4. The Transition that conveys the state machine from the old state to the new state.

The intended purpose of this callback is purely for tracing or analysis purposes. The callback is expected to not interfere with the state machine excution. Actions within a state machine shall solely be executed through the EntryAction, ExitAction and TransitionAction.

See Also