4 * Auteur : Ivan DUTKA-MALEN - EDF R&D
5 * Mail : mailto:ivan.dutka-malen@der.edf.fr
6 * Date : Fri Nov 14 11:00:39 2003
16 #include <pbs_error.h>
19 #include "Batch_Job.hxx"
26 // Constructeur et destructeur
27 Job_PBS(const Job & job);
31 struct attropl * getAttributesOP();
32 struct attrl * getAttributes();
34 char * getDestination();
37 struct attropl * _p_attropl; // liste chainee d'attributs + operateur
38 struct attrl * _p_attrl; // liste chainee d'attributs
39 char * _script; // chemin d'acces au script du job
40 char * _destination; // queue dans laquelle le job est soumis
43 // Ajoute un element (name,resource,value) a la liste chainee d'attributs + operateur
44 void setResourceAttributeOP(struct attropl ** attr_list, const char * attr_name, const char * attr_resource, const char * attr_value);
46 // Recherche un element (name,resource,value) dans la liste chainee d'attributs + operateur
47 struct attropl * findResourceAttributeOP(struct attropl * attr_list, const char * attr_name, const char * attr_resource);
49 // Recherche le dernier element de la liste chainee d'attributs + operateur
50 struct attropl * lastAttributeOP(struct attropl * attr_list);
52 // Convertit un objet Parametre en liste chainee d'attributs + operateur
53 struct attropl * ParametreToAttributeOPList(struct attropl ** _p_attr_list, Parametre & param);
55 // Convertit un objet Environnement en liste chainee d'attributs + operateur
56 struct attropl * EnvironnementToAttributeOPList(struct attropl ** _p_attr_list, Environnement & env);
58 // Ajoute les variables d'environnement presentes dans tout job PBS
59 void addPBSEnvironnement(Environnement & E);
62 // Ajoute un element (name,resource,value) a la liste chainee d'attributs
63 void setResourceAttribute(struct attrl ** attr_list, const char * attr_name, const char * attr_resource, const char * attr_value);
65 // Recherche un element (name,resource,value) dans la liste chainee d'attributs
66 struct attrl * findResourceAttribute(struct attrl * attr_list, const char * attr_name, const char * attr_resource);
68 // Recherche le dernier element de la liste chainee d'attributs
69 struct attrl * lastAttribute(struct attrl * attr_list);