FACT++  1.0
State DimDescribedState::description ( ) const
inlinevirtual

Reimplemented from DimState.

Definition at line 160 of file DimState.h.

References DimState::kNotAvailable, DimState::state(), and DimState::time().

Referenced by StateMachineSmartFACT::Execute(), and StateMachineDimControl::HandleStateChange().

161  {
162  for (auto it=states.begin(); it!=states.end(); it++)
163  if (it->index==state())
164  return State(it->index, it->name, it->comment, time());
165 
166  return State(kNotAvailable, "n/a");
167  }
std::vector< State > states
Definition: DimState.h:132
const int32_t & state() const
Definition: DimState.h:80
const Time & time() const
Definition: DimState.h:79

+ Here is the call graph for this function:

+ Here is the caller graph for this function: