FACT++  1.0
int StateMachineMCP::HandleStateChange ( )
inlineprivate

Definition at line 289 of file mcp.cc.

References Agilent::State::kConnected, MCP::State::kConnected, FTM::State::kConnected, MCP::State::kConnecting, MCP::State::kDimNetworkNA, MCP::State::kDisconnected, MCP::State::kIdle, DimState::online(), and DimState::state().

Referenced by StateMachineMCP().

290  {
291  if (!fDim.online())
293 
296  fDimLog.state() >= kSM_Ready)
298 
299  if (fDimFTM.state() >-2 &&
300  fDimFAD.state() >-2 &&
301  fDimLog.state() >-2 &&
302  fDimRC.state() >-2)
303  return MCP::State::kConnected;
304 
305  if (fDimFTM.state() >-2 ||
306  fDimFAD.state() >-2 ||
307  fDimLog.state() >-2 ||
308  fDimRC.state() >-2)
310 
312  }
Mainloop running, state machine in operation.
int GetCurrentState() const
return the current state of the machine
DimDescribedState fDimFTM
Definition: mcp.cc:46
const int32_t & state() const
Definition: DimState.h:80
DimVersion fDim
Definition: mcp.cc:45
DimDescribedState fDimFAD
Definition: mcp.cc:47
DimDescribedState fDimLog
Definition: mcp.cc:48
bool online() const
Definition: DimState.h:82
DimDescribedState fDimRC
Definition: mcp.cc:49

+ Here is the call graph for this function:

+ Here is the caller graph for this function: