FACT++  1.0
int StateMachineRateScan::Execute ( )
inlineprivatevirtual

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 from StateMachineImp.

Definition at line 422 of file ratescan.cc.

References RateScan::State::kConnected, FTM::State::kConnected, RateScan::State::kDimNetworkNA, RateScan::State::kDisconnected, DimState::online(), and DimState::state().

423  {
424  if (!fDim.online())
426 
427  // All subsystems are not connected
430 
431  // ftmctrl connected to FTM
434 
435  return GetCurrentState();
436  }
int GetCurrentState() const
return the current state of the machine
const int32_t & state() const
Definition: DimState.h:80
DimVersion fDim
Definition: ratescan.cc:40
bool online() const
Definition: DimState.h:82
DimDescribedState fDimFTM
Definition: ratescan.cc:42

+ Here is the call graph for this function: