Class taskable
Defined in File taskable.hpp
Inheritance Relationships
Base Type
public rmetrics::base_metrics
Derived Types
public cosm::spatial::fsm::acquire_goal_fsm
(Class acquire_goal_fsm)public cosm::spatial::fsm::explore_for_goal_fsm
(Class explore_for_goal_fsm)public cosm::spatial::fsm::vector_fsm
(Class vector_fsm)public cosm::spatial::strategy::base_strategy
(Class base_strategy)public cosm::ta::polled_task
(Class polled_task)
Class Documentation
-
class taskable : public virtual rmetrics::base_metrics
A class that all classes wishing to be used as the mechanism by which executable_task objects execute themselves must inherit from.
Subclassed by cosm::spatial::fsm::acquire_goal_fsm, cosm::spatial::fsm::explore_for_goal_fsm, cosm::spatial::fsm::vector_fsm, cosm::spatial::strategy::base_strategy, cosm::ta::polled_task
Public Functions
-
taskable(void) = default
-
~taskable(void) override
-
virtual void task_execute(void) = 0
Execute the task.
-
virtual bool task_finished(void) const = 0
Determine if the task has finished yet.
- Returns:
TRUE
if the task has finished, andFALSE
otherwise.
-
inline virtual void task_reset(void)
Reset the task so that it is ready for execution again. Does nothing by default.
-
virtual bool task_running(void) const = 0
Determine if the task has is still running yet.
- Returns:
TRUE
if the task is still running, andFALSE
otherwise.
-
virtual void task_start(taskable_argument *c_arg) = 0
Start the task with the specified argument. The argument is consumed by the called function.
-
taskable(void) = default