Arc::JobState Class Reference

#include <JobState.h>

Inheritance diagram for Arc::JobState:
Arc::JobStateTEST

Public Member Functions

bool IsFinished () const

Detailed Description

ARC general state model. The class comprise the general state model of the ARC-lib, and are herein used to compare job states from the different middlewares supported by the plugin structure of the ARC-lib. Which is why every ACC plugin should contain a class derived from this class. The derived class should consist of a constructor and a mapping function (a JobStateMap) which maps a std::string to a JobState:StateType. An example of a constructor in a plugin could be: JobStatePlugin::JobStatePluging(const std::string& state) : JobState(state, &pluginStateMap) {} where &pluginStateMap is a reference to the JobStateMap defined by the derived class.


Member Function Documentation

bool Arc::JobState::IsFinished (  )  const [inline]

Check if state is finished.

Returns:
true is returned if the StateType is equal to FINISHED, KILLED, FAILED or DELETED, otherwise false is returned.

The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:19 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3