FACT++  1.0
template<class T , class S >
int StateMachineAgilent< T, S >::PowerCycle ( const EventImp evt)
inlineprivate

Definition at line 410 of file agilentctrl.cc.

References EventImp::GetShort(), and EventImp::GetSize().

Referenced by StateMachineAgilent< T, S >::StateMachineAgilent().

411  {
412  if (!CheckEventSize(evt.GetSize(), "PowerCyle", 2))
413  return T::kSM_FatalError;
414 
415  if (evt.GetShort()<60)
416  {
417  T::Warn("Power cycle delays of less than 60s not allowed.");
418  return T::GetCurrentState();
419  }
420 
421  fAgilent.PowerCycle(evt.GetShort());
422 
423  return T::GetCurrentState();
424  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: agilentctrl.cc:369
int16_t GetShort() const
Definition: EventImp.h:91
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: