#include <source/toolbox/parallel/RelaunchableJob.h>
Inheritance diagram for SAMRAI::tbox::RelaunchableJob:
Public Types | |
enum | JobState { COMMUNICATION_WAIT = 0, NONCOMMUNICATION_WAIT = 1, JOB_IS_COMPLETED = 2 } |
Public Member Functions | |
RelaunchableJob () | |
Default constructor. | |
virtual | ~RelaunchableJob (void) |
Destructor. | |
virtual void | continueJob ()=0 |
virtual JobState | getJobState ()=0 |
Get the current state of the job, as a JobState enumeration. | |
virtual AsyncCommGroup * | getCommunicationGroup ()=0 |
Get the communication group object that the job uses for communications. |
This is a strategy class for use with JobRelauncher.
The implemented job should be written to be able to pause during a communication or non-communication wait.
SAMRAI::tbox::RelaunchableJob::RelaunchableJob | ( | ) | [inline] |
Default constructor.
virtual SAMRAI::tbox::RelaunchableJob::~RelaunchableJob | ( | void | ) | [inline, virtual] |
Destructor.
Deallocate internal data.
virtual void SAMRAI::tbox::RelaunchableJob::continueJob | ( | ) | [pure virtual] |
Continue the user-defined job.
virtual JobState SAMRAI::tbox::RelaunchableJob::getJobState | ( | ) | [pure virtual] |
Get the current state of the job, as a JobState enumeration.
virtual AsyncCommGroup* SAMRAI::tbox::RelaunchableJob::getCommunicationGroup | ( | ) | [pure virtual] |
Get the communication group object that the job uses for communications.