FACT++  1.0
StateMachineImp::Execute ( )
inlineprotectedvirtual

Is called continously to execute actions in the current state.

This is what the state machine is doing in a certain state continously. In an idle state this might just be doing nothing.

In the tracking state of the drive system this might be sending new command values to the drive based on its current position.

The current state of the state machine can be accessed by GetCurrentState()

Returns
Usually it should just return the current state. However, sometimes execution might lead to a new state, e.g. when a hardware error is detected. In this case a new state can be returned to put the state machine into a different state. Note, that the function is responsible of doing all actions connected with the state change itself. If not overwritten it returns the current status.

Reimplemented in StateMachineSmartFACT, StateMachineFeedback, StateMachineRateControl, SkypeClient, StateMachineRateScan, StateMachineMCP, StateMachineEventServer, and StateMachineTimeCheck.

Definition at line 69 of file StateMachineImp.h.

References CreateEvent(), CreateService(), and fCurrentState.

Referenced by Run().

69 { return fCurrentState; }
int fCurrentState
Name of the state-machine / server (e.g. DRIVE)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: