glite::jdl::NodeAd Class Reference

Provides a representation of the job description in the JDL language. More...

#include <src/requestad/NodeAd.h>

Inheritance diagram for glite::jdl::NodeAd:
glite::jdl::JobAd glite::jdl::Ad

Public Member Functions

 NodeAd ()
 Default constructor.
 NodeAd (const std::string &jdl)
 Constructor with a string.
 NodeAd (const classad::ClassAd &classAd)
 Constructory by Classad.
 NodeAd (const NodeAd &nodead)
 Constructory by NodeAd.
void operator= (const NodeAd &nodead)
 Operator "=" performs a deep copy of the JobAd instance.
virtual ~NodeAd () throw ()
 Operator =.
std::vector< classad::ExprTree * > getRemoteSandbox ()
 Retrieve the inputSandbox remote files extracted while checking the Ad.
std::vector< std::string > getStringValue (const std::string &attr_name)
 Retrieves the string value for the specified attribute.
void addUserTag (const std::string &attr_name, const std::string &attr_value)
 Add a UserTag to the node.
void checkSyntax (const std::string &attr_name, classad::Value attr_value)
 Check the syntax of the specified attribute.

Protected Member Functions

std::vector< std::string > getISBStrings ()
 Retrieves only string InputSandbox values for this node.
void checkInputSandbox (std::vector< std::string > &extracted)
 Check InputSandbox value.
void checkSpecials ()
 Perform Special checks for VirtualOrganisation attribute Notice: for a NodeAd instance it is not mandatory (as for a JobAd).
void insertAttribute (const std::string &attr_name, classad::ExprTree *val)
 JobAd overloaded method: used to insert an attribute inside the classad.

Friends

class ExpDagAd

Detailed Description

Provides a representation of the job description in the JDL language.

Version:
0.1
Date:
15 April 2002
Author:
Alessandro Maraschini <alessandro.maraschini@datamat.it>

Constructor & Destructor Documentation

glite::jdl::NodeAd::NodeAd (  )  [inline]

Default constructor.

glite::jdl::NodeAd::NodeAd ( const std::string &  jdl  )  [inline]

Constructor with a string.

Parameters:
jdl the string to be loaded

References glite::jdl::Ad::fromString().

glite::jdl::NodeAd::NodeAd ( const classad::ClassAd &  classAd  )  [inline]

Constructory by Classad.

References glite::jdl::JobAd::fromClassAd().

glite::jdl::NodeAd::NodeAd ( const NodeAd nodead  ) 

Constructory by NodeAd.

virtual glite::jdl::NodeAd::~NodeAd (  )  throw () [virtual]

Operator =.


Member Function Documentation

void glite::jdl::NodeAd::addUserTag ( const std::string &  attr_name,
const std::string &  attr_value 
)

Add a UserTag to the node.

Parameters:
attr_name the name of the usertag to be added
attr_value the value for the usertag
void glite::jdl::NodeAd::checkInputSandbox ( std::vector< std::string > &  extracted  )  [protected, virtual]

Check InputSandbox value.

Could be overloaded in order to perform different checks

Parameters:
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::NodeAd::checkSpecials (  )  [protected, virtual]

Perform Special checks for VirtualOrganisation attribute Notice: for a NodeAd instance it is not mandatory (as for a JobAd).

Reimplemented from glite::jdl::JobAd.

void glite::jdl::NodeAd::checkSyntax ( const std::string &  attr_name,
classad::Value  attr_value 
) [virtual]

Check the syntax of the specified attribute.

Parameters:
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::NodeAd::getISBStrings (  )  [protected]

Retrieves only string InputSandbox values for this node.

reference values will not be taken into consideration

Returns:
the list of all string values
std::vector<classad::ExprTree*> glite::jdl::NodeAd::getRemoteSandbox (  ) 

Retrieve the inputSandbox remote files extracted while checking the Ad.

Returns:
a vector of all the Expression of remote sandbox i.e. all the <node name>="">_<sbx file> linked in the inputsandbox attribute
std::vector<std::string> glite::jdl::NodeAd::getStringValue ( const std::string &  attr_name  )  [virtual]

Retrieves the string value for the specified attribute.

Parameters:
attr_name the name of the attribute to be looked up
Returns:
the values, as a vector of strings, corresponding to the searched attribute

Reimplemented from glite::jdl::Ad.

void glite::jdl::NodeAd::insertAttribute ( const std::string &  attr_name,
classad::ExprTree *  val 
) [protected, virtual]

JobAd overloaded method: used to insert an attribute inside the classad.

Parameters:
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::NodeAd::operator= ( const NodeAd nodead  )  [virtual]

Operator "=" performs a deep copy of the JobAd instance.

Reimplemented from glite::jdl::JobAd.


Friends And Related Function Documentation

friend class ExpDagAd [friend]

Reimplemented from glite::jdl::JobAd.


The documentation for this class was generated from the following file:

Generated on 15 May 2012 for glite-jdl-api-cpp-3.2.5 by  doxygen 1.6.1