Fawkes API Fawkes Development Version
|
Dispatch an activity to a number of registered executors by checking all registered executors subsequently, whether they can execute the given activity. More...
Public Member Functions | |
std::shared_ptr< ActionExecutor > | get_executor (std::shared_ptr< gologpp::Activity >) |
Determine the executor for a given activity. More... | |
void | register_executor (std::shared_ptr< ActionExecutor > executor) |
Register a new executor. More... | |
Dispatch an activity to a number of registered executors by checking all registered executors subsequently, whether they can execute the given activity.
The first suitable executor is used to execute the activity.
Definition at line 31 of file action_executor_dispatcher.h.
std::shared_ptr< ActionExecutor > fawkes::gpp::ActionExecutorDispatcher::get_executor | ( | std::shared_ptr< gologpp::Activity > | activity | ) |
Determine the executor for a given activity.
Check all registered executors if any of them can execute the given activity.
activity | The activity to execute. |
Exception | If no suitable executor for the given activity exists. |
Definition at line 43 of file action_executor_dispatcher.cpp.
Referenced by fawkes::gpp::GologppFawkesBackend::preempt_activity().
void fawkes::gpp::ActionExecutorDispatcher::register_executor | ( | std::shared_ptr< ActionExecutor > | executor | ) |
Register a new executor.
executor | The new executor |
Definition at line 57 of file action_executor_dispatcher.cpp.
Referenced by fawkes::gpp::GologppFawkesBackend::GologppFawkesBackend().