An AbstractTask to compose a list of tasks in a sequence. More...
#include <SequenceTask.h>
Public Member Functions | |
SequenceTask (const vector< ptr< TaskFactory > > &subtasks) | |
Creates a SequenceTask with the given list of tasks. | |
virtual | ~SequenceTask () |
Deletes this SequenceTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Protected Member Functions | |
SequenceTask () | |
Creates an empty SequenceTask. | |
void | init (const vector< ptr< TaskFactory > > &subtasks) |
Initializes this SequenceTask with the given list of tasks. | |
void | swap (ptr< SequenceTask > t) |
Swaps this SequenceTask with another one. |
An AbstractTask to compose a list of tasks in a sequence.
ork::SequenceTask::SequenceTask | ( | const vector< ptr< TaskFactory > > & | subtasks | ) |
Creates a SequenceTask with the given list of tasks.
subtasks | the tasks that must be composed into a sequence. |
virtual ork::SequenceTask::~SequenceTask | ( | ) | [virtual] |
Deletes this SequenceTask.
ork::SequenceTask::SequenceTask | ( | ) | [protected] |
Creates an empty SequenceTask.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::SequenceTask::init | ( | const vector< ptr< TaskFactory > > & | subtasks | ) | [protected] |
Initializes this SequenceTask with the given list of tasks.
subtasks | the tasks that must be composed into a sequence. |
void ork::SequenceTask::swap | ( | ptr< SequenceTask > | t | ) | [protected] |
Swaps this SequenceTask with another one.
t | a SequenceTask. |