Fawkes API
Fawkes Development Version
|
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();
ClockPlexilTimeAdapter(PLEXIL::AdapterExecInterface &execInterface)
Constructor.
virtual ~ClockPlexilTimeAdapter()
Destructor.
virtual void lookupNow(PLEXIL::State const &state, PLEXIL::StateCacheEntry &cacheEntry)
Immediate lookup of value.
virtual bool stop()
Stop 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 unsubscribe(const PLEXIL::State &state)
Unsubscribe from updates.
Callback listener pure virtual class.
virtual bool initialize()
Initialize adapter.
virtual void subscribe(const PLEXIL::State &state)
Subscribe to updates for given state.
double getCurrentTime()
Get the current time from the operating system.
An interface adapter using standard POSIX time facilities to implement LookupNow and LookupOnChange.
virtual bool start()
Start adapter.