FACT++  1.0
int StateMachineSmartFACT::HandleDriveControlStateChange ( const EventImp d)
inlineprivate

Definition at line 1060 of file smartfact.cc.

References Drive::State::kInitialized, DimState::kOffline, StateMachineImp::kSM_KeepState, DimState::last, and DimState::state().

Referenced by StateMachineSmartFACT().

1061  {
1062  const int32_t &last = fDimFscControl.last.second;
1063  const int32_t &state = fDimFscControl.state();
1064 
1065  if (last==DimState::kOffline || state==DimState::kOffline)
1067 
1068  if (last<Drive::State::kInitialized && state>=Drive::State::kInitialized)
1069  AddMcpConfigurationHist(d, "Drive ready");
1070 
1072  AddMcpConfigurationHist(d, "Drive not ready");
1073 
1075  }
const int32_t & state() const
Definition: DimState.h:80
std::pair< Time, int32_t > last
Definition: DimState.h:64
void AddMcpConfigurationHist(const EventImp &d, const string &msg)
Definition: smartfact.cc:878
DimDescribedState fDimFscControl
Definition: smartfact.cc:637

+ Here is the call graph for this function:

+ Here is the caller graph for this function: