Abstract base class for a generic Task.
More...
#include <pearl/Task.h>
The Task class provides an interface for a task or a subtask. Implementations need to derive from Task and implement the execute() method.
A Task can be child of (at most one) CompoundTask, which will then be the task's parent. Task provides means to access the parent CompoundTask.
- See also
- CompoundTask
◆ ~Task()
virtual pearl::Task::~Task |
( |
| ) |
|
|
virtual |
◆ Task()
◆ execute()
virtual bool pearl::Task::execute |
( |
| ) |
|
|
pure virtual |
Pure virtual member function defining the interface for executing a task. This method needs to be overwritten in derived subclasses to define the task's runtime behavior.
- Returns
- Should return true if execution was successful, false otherwise
Implemented in pearl::ReplayTask, and pearl::CompoundTask.
◆ get_parent()
◆ CompoundTask
◆ TaskWrapper
The documentation for this class was generated from the following file: