Provides a job description user-friendly language for parametric jobs. More...
#include <glite/jdl/parametricad.h>
Public Member Functions | |
ParametricAd () | |
ParametricAd (const std::string &jdl) | |
ParametricAd (const classad::ClassAd &classAd) | |
ParametricAd (const ParametricAd &nodead) | |
void | operator= (const ParametricAd &nodead) |
virtual | ~ParametricAd () throw () |
std::vector< classad::ExprTree * > | getRemoteSandbox () |
std::vector< std::string > | getStringValue (const std::string &attr_name) |
void | addUserTag (const std::string &attr_name, const std::string &attr_value) |
void | checkSyntax (const std::string &attr_name, classad::Value attr_value) |
Protected Member Functions | |
std::vector< std::string > | getISBStrings () |
void | checkInputSandbox (std::vector< std::string > &extracted) |
void | checkSpecials () |
void | insertAttribute (const std::string &attr_name, classad::ExprTree *val) |
Friends | |
class | ExpDagAd |
Provides a job description user-friendly language for parametric jobs.
glite::jdl::ParametricAd::ParametricAd | ( | ) | [inline] |
Default constructor
glite::jdl::ParametricAd::ParametricAd | ( | const std::string & | jdl | ) | [inline] |
Constructor with a string
jdl | the string to be loaded |
References glite::jdl::Ad::fromString().
glite::jdl::ParametricAd::ParametricAd | ( | const classad::ClassAd & | classAd | ) | [inline] |
Constructory by Classad
References glite::jdl::JobAd::fromClassAd().
glite::jdl::ParametricAd::ParametricAd | ( | const ParametricAd & | nodead | ) |
Constructory by ParametricAd
virtual glite::jdl::ParametricAd::~ParametricAd | ( | ) | throw () [virtual] |
Operator =
void glite::jdl::ParametricAd::addUserTag | ( | const std::string & | attr_name, | |
const std::string & | attr_value | |||
) |
Add a UserTag to the node
attr_name | the name of the usertag to be added | |
attr_value | the value for the usertag |
void glite::jdl::ParametricAd::checkInputSandbox | ( | std::vector< std::string > & | extracted | ) | [protected, virtual] |
Check InputSandbox value. Could be overloaded in order to perform different checks
extracted | a vector listing all the files that have to be extracted i.e. whoose path has to be solved |
Reimplemented from glite::jdl::JobAd.
void glite::jdl::ParametricAd::checkSpecials | ( | ) | [protected, virtual] |
Perform Special checks for VirtualOrganisation attribute Notice: for a ParametricAd instance it is not mandatory (as for a JobAd)
Reimplemented from glite::jdl::JobAd.
void glite::jdl::ParametricAd::checkSyntax | ( | const std::string & | attr_name, | |
classad::Value | attr_value | |||
) | [virtual] |
Check the syntax of the specified attribute
attr_name | the name of the attribute | |
attr_value | the classad value of the attribute |
Reimplemented from glite::jdl::JobAd.
std::vector<std::string> glite::jdl::ParametricAd::getISBStrings | ( | ) | [protected] |
Retrieves only string InputSandbox values for this node. reference values will not be taken into consideration
std::vector<classad::ExprTree*> glite::jdl::ParametricAd::getRemoteSandbox | ( | ) |
Retrieve the inputSandbox remote files extracted while checking the Ad
std::vector<std::string> glite::jdl::ParametricAd::getStringValue | ( | const std::string & | attr_name | ) | [virtual] |
Retrieves the string value for the specified attribute
attr_name | the name of the attribute to be looked up |
Reimplemented from glite::jdl::Ad.
void glite::jdl::ParametricAd::insertAttribute | ( | const std::string & | attr_name, | |
classad::ExprTree * | val | |||
) | [protected, virtual] |
JobAd overloaded method: used to insert an attribute inside the classad
attr_name | the name of the attribute | |
val | the value of the inserted attribute as a classad expression |
Reimplemented from glite::jdl::JobAd.
void glite::jdl::ParametricAd::operator= | ( | const ParametricAd & | nodead | ) | [virtual] |
Operator "=" performs a deep copy of the JobAd instance
Reimplemented from glite::jdl::JobAd.
friend class ExpDagAd [friend] |
Reimplemented from glite::jdl::JobAd.