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();
An interface adapter using standard POSIX time facilities to implement LookupNow and LookupOnChange.
virtual bool reset()
Reset adapter.
virtual void subscribe(const PLEXIL::State &state)
Subscribe to updates for given state.
virtual bool initialize()
Initialize adapter.
virtual bool shutdown()
Shut adapter down.
virtual bool start()
Start adapter.
virtual void setThresholds(const PLEXIL::State &state, double hi, double lo)
Set thresholds for subscription.
virtual void lookupNow(PLEXIL::State const &state, PLEXIL::StateCacheEntry &cacheEntry)
Immediate lookup of value.
virtual bool stop()
Stop adapter.
virtual ~ClockPlexilTimeAdapter()
Destructor.
virtual void timer_event()
Called for timer events.
double getCurrentTime()
Get the current time from the operating system.
ClockPlexilTimeAdapter(PLEXIL::AdapterExecInterface &execInterface)
Constructor.
virtual void unsubscribe(const PLEXIL::State &state)
Unsubscribe from updates.
Callback listener pure virtual class.
This is supposed to be the central clock in Fawkes.