| StateMachineTraceStateChange Property |
Gets or sets a callback that can be used for tracing state changes in the
StateMachine.
Namespace: StaMaAssembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax public StateMachineTraceStateChangeEventHandler TraceStateChange { get; set; }
Public Property TraceStateChange As StateMachineTraceStateChangeEventHandler
Get
Set
public:
property StateMachineTraceStateChangeEventHandler^ TraceStateChange {
StateMachineTraceStateChangeEventHandler^ get ();
void set (StateMachineTraceStateChangeEventHandler^ value);
}
member TraceStateChange : StateMachineTraceStateChangeEventHandler with get, set
Property Value
Type:
StateMachineTraceStateChangeEventHandlerRemarks
The delegate will be called when the
StateMachine changes its active state.
The StateMachine passes the following parameters to the callback:
-
The StateMachine instance that changes the state.
-
The StateConfiguration instance that represents the old state.
-
The StateConfiguration instance that represents the new state.
-
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