23 #ifndef __PLUGINS_PLEXIL_CLOCK_ADAPTER_H_ 24 #define __PLUGINS_PLEXIL_CLOCK_ADAPTER_H_ 26 #include "timer_thread.h" 28 #include <utils/time/clock.h> 30 #include <TimeAdapter.hh> 59 virtual void lookupNow(PLEXIL::State
const &state, PLEXIL::StateCacheEntry &cacheEntry);
60 virtual void subscribe(
const PLEXIL::State &state);
61 virtual void unsubscribe(
const PLEXIL::State &state);
62 virtual void setThresholds(
const PLEXIL::State &state,
double hi,
double lo);
63 virtual void setThresholds(
const PLEXIL::State &state, int32_t hi, int32_t lo);
73 void initFawkesTimeAdapter();
Callback listener pure virtual class.
virtual void unsubscribe(const PLEXIL::State &state)
Unsubscribe from updates.
double getCurrentTime()
Get the current time from the operating system.
This is supposed to be the central clock in Fawkes.
virtual void subscribe(const PLEXIL::State &state)
Subscribe to updates for given state.
ClockPlexilTimeAdapter(PLEXIL::AdapterExecInterface &execInterface)
Constructor.
virtual bool start()
Start adapter.
An interface adapter using standard POSIX time facilities to implement LookupNow and LookupOnChange.
virtual ~ClockPlexilTimeAdapter()
Destructor.
virtual bool initialize()
Initialize adapter.
virtual void timer_event()
Called for timer events.
virtual void setThresholds(const PLEXIL::State &state, double hi, double lo)
Set thresholds for subscription.
virtual bool reset()
Reset adapter.
virtual bool shutdown()
Shut adapter down.
virtual void lookupNow(PLEXIL::State const &state, PLEXIL::StateCacheEntry &cacheEntry)
Immediate lookup of value.
virtual bool stop()
Stop adapter.