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

Definition at line 815 of file smartfact.cc.

References StateMachineSmartFACT::EventHist::add(), EventImp::GetQoS(), EventImp::GetSize(), EventImp::GetText(), EventImp::GetTime(), MessageImp::kAlarm, MessageImp::kComment, and Time::none.

Referenced by StateMachineSmartFACT().

816  {
817  if (d.GetSize()==0)
818  return GetCurrentState();
819 
820  if (d.GetQoS()==MessageImp::kAlarm)
821  {
822  if (d.GetSize()<2)
823  for (auto it=fControlAlarmHist.begin(); it!=fControlAlarmHist.end(); it++)
824  it->time = Time(Time::none);
825  else
827  }
828 
829  if (d.GetQoS()==MessageImp::kComment && d.GetSize()>1)
831 
832  return GetCurrentState();
833  }
int GetCurrentState() const
return the current state of the machine
const char * GetText() const
Definition: EventImp.h:88
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
void add(const string &s, const Time &t=Time())
Definition: smartfact.cc:469
EventHist fControlAlarmHist
Definition: smartfact.cc:528
virtual Time GetTime() const
Definition: EventImp.h:57
virtual int GetQoS() const
Definition: EventImp.h:58
A comment which is always printed.
Definition: MessageImp.h:22
Error, something unexpected happened, but needs user intervention (i.e. it needs a signal to the user...
Definition: MessageImp.h:20
Do not initialize the time.
Definition: Time.h:51
virtual size_t GetSize() const
Definition: EventImp.h:55
void HandleControlMessageImp(const EventImp &d)
Definition: smartfact.cc:798

+ Here is the call graph for this function:

+ Here is the caller graph for this function: