Task Class Reference
[PEARL.replay]

Abstract base class for a generic Task. More...

#include <Task.h>

Inheritance diagram for Task:

CompoundTask ReplayTask TaskWrapper BackwardReplayTask ForwardReplayTask

List of all members.

Public Member Functions

Constructors & destructor
virtual ~Task ()
Accessing task properties
CompoundTaskget_parent () const
Executing the task
virtual bool execute ()=0

Protected Member Functions

Constructors & destructor
 Task ()


Detailed Description

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

Constructor & Destructor Documentation

~Task (  )  [virtual]

Destructor. Destroys the instance.

Task (  )  [protected]

Creates a new task instance and initializes its data.


Member Function Documentation

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.

Returns:
Should return true if execution was successful, false otherwise

Implemented in CompoundTask, and ReplayTask.

CompoundTask * get_parent (  )  const

Returns a pointer to the parent CompoundTask, if any.

Returns:
Pointer to parent CompoundTask, or 0 if there is none.


SCALASCA    Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre