#include <Task.h>
Public Member Functions | |
Constructors & destructor | |
virtual | ~Task () |
Accessing task properties | |
CompoundTask * | get_parent () const |
Executing the task | |
virtual bool | execute ()=0 |
Protected Member Functions | |
Constructors & destructor | |
Task () |
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.
~Task | ( | ) | [virtual] |
Destructor. Destroys the instance.
Task | ( | ) | [protected] |
Creates a new task instance and initializes its data.
virtual bool 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.
Implemented in CompoundTask, and ReplayTask.
CompoundTask * get_parent | ( | ) | const |
Returns a pointer to the parent CompoundTask, if any.
![]() |
Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre |