Fawkes API Fawkes Development Version
|
Interface adapter to provide logging facilities. More...
#include <globals_adapter.h>
Public Member Functions | |
GlobalStatePlexilAdapter (PLEXIL::AdapterExecInterface &execInterface) | |
Constructor. More... | |
GlobalStatePlexilAdapter (PLEXIL::AdapterExecInterface &execInterface, pugi::xml_node const xml) | |
Constructor from configuration XML. More... | |
virtual | ~GlobalStatePlexilAdapter () |
Destructor. More... | |
virtual bool | initialize () |
Initialize adapter. More... | |
virtual bool | start () |
Start adapter. More... | |
virtual bool | stop () |
Stop adapter. More... | |
virtual bool | reset () |
Reset adapter. More... | |
virtual bool | shutdown () |
Shut adapter down. More... | |
virtual void | subscribe (const PLEXIL::State &state) |
Subscribe to updates for given state. More... | |
virtual void | unsubscribe (const PLEXIL::State &state) |
Unsubscribe from updates. More... | |
virtual void | executeCommand (PLEXIL::Command *cmd) |
Perform given command. More... | |
virtual void | invokeAbort (PLEXIL::Command *cmd) |
Abort currently running execution. More... | |
virtual void | lookupNow (PLEXIL::State const &state, PLEXIL::StateCacheEntry &cache_entry) |
Immediate lookup of value. More... | |
Interface adapter to provide logging facilities.
Plexil adapter to provide access to the Fawkes configuration.
Definition at line 35 of file globals_adapter.h.
GlobalStatePlexilAdapter::GlobalStatePlexilAdapter | ( | PLEXIL::AdapterExecInterface & | execInterface | ) |
Constructor.
execInterface | Reference to the parent AdapterExecInterface object. |
Definition at line 44 of file globals_adapter.cpp.
GlobalStatePlexilAdapter::GlobalStatePlexilAdapter | ( | PLEXIL::AdapterExecInterface & | execInterface, |
pugi::xml_node const | xml | ||
) |
Constructor from configuration XML.
execInterface | Reference to the parent AdapterExecInterface object. |
xml | A const reference to the XML element describing this adapter |
Definition at line 54 of file globals_adapter.cpp.
|
virtual |
Destructor.
Definition at line 61 of file globals_adapter.cpp.
|
virtual |
Perform given command.
cmd | command to execute |
Definition at line 272 of file globals_adapter.cpp.
|
virtual |
Initialize adapter.
Definition at line 69 of file globals_adapter.cpp.
References fawkes::Configuration::exists(), fawkes::Configuration::get_bool(), fawkes::Configuration::get_float(), fawkes::Configuration::get_int(), fawkes::Configuration::get_string(), fawkes::Logger::log_debug(), fawkes::Logger::log_warn(), fawkes::Configuration::ValueIterator::path(), fawkes::Configuration::search(), and fawkes::Exception::what_no_backtrace().
|
virtual |
Abort currently running execution.
cmd | command to abort |
Definition at line 292 of file globals_adapter.cpp.
|
virtual |
Immediate lookup of value.
state | state variable to lookup |
cache_entry | cache entry for retrieved value |
Definition at line 303 of file globals_adapter.cpp.
|
virtual |
Reset adapter.
Definition at line 254 of file globals_adapter.cpp.
|
virtual |
Shut adapter down.
Definition at line 263 of file globals_adapter.cpp.
|
virtual |
Start adapter.
Definition at line 236 of file globals_adapter.cpp.
|
virtual |
Stop adapter.
Definition at line 245 of file globals_adapter.cpp.
|
virtual |
Subscribe to updates for given state.
state | state variable to subscribe for |
Definition at line 319 of file globals_adapter.cpp.
|
virtual |
Unsubscribe from updates.
state | state variable to unsubscribe from |
Definition at line 328 of file globals_adapter.cpp.