37 SetValue(
"Executable", AddQuotes(value));
39 SetDescription(
"Executable", description);
149 UInt_t maxinputfilesize,
const char *d1,
const char *d2,
152 if (value && !strcasecmp(value,
"SE")) {
155 if (maxnumberofinputfiles) {
158 if (maxinputfilesize) {
173 val += maxnumberofinputfiles;
186 val += maxinputfilesize;
219 str += maxInitFailed;
230 if ((command) && (value))
232 if ((command) && (description))
286 AddToSet(
"InputDataCollection", value);
295 const char *
type,
const char *description)
302 packagename += version;
338 const char *oldValue =
GetValue(key);
341 newString = oldValue;
359 const char *mergedFile,
const char *description )
361 TString mergename ( filenameToMerge );
363 mergename += jdlToSubmit;
365 mergename += mergedFile;
386 Info(
"SubmitTest",
"submitting test job /bin/date");
389 Error(
"SubmitTest",
"you must have a proper GRID environment initialized");
399 Error(
"SubmitTest",
"submitting failed");
438 Error (
"SetValueByCmd()",
"Cmd Value not supported.." );
447 file.open ( filename );
448 if ( !file.is_open() ) {
449 Error(
"Parse",
"error opening file %s", filename);
455 while ( file.good() ) {
456 file.getline ( line,1024 );
459 if ( !lineString.
IsNull() ) {
460 if (lineString.
Index(
'#') == 0)
continue;
470 TObjArray *strValues = valueString.Tokenize (
"`" );
virtual void SetValidationCommand(const char *value, const char *description=0)
Sets the validation command.
virtual void SetOwnCommand(const char *command=0, const char *value=0, const char *description=0)
Sets the Own Command.
Bool_t SubmitTest()
Tests the submission of a simple job.
TString AddQuotes(const char *value)
Adds quotes to the provided string.
virtual void AddToInputDataCollection(const char *value=0, const char *description=0)
Adds a file to the input data collection.
virtual void SetJobTag(const char *jobtag=0, const char *description=0)
Sets Job Tag.
virtual void SetMergedOutputDirectory(const char *value=0, const char *description=0)
Sets merged OutputDirectory.
Collectable string class.
void SetValue(const char *key, const char *value)
Sets a value. If the entry already exists the old one is replaced.
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual void SetSplitMode(const char *value, UInt_t maxnumberofinputfiles=0, UInt_t maxinputfilesize=0, const char *d1=0, const char *d2=0, const char *d3=0)
Sets the split mode.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
static const char * filename()
ClassImp(TAlienJDL) void TAlienJDL
Sets the executable.
void Simulate()
Not implemented.
const char * Data() const
virtual void AddToReqSet(const char *key, const char *value=0)
Adds a value to a key value which hosts a set of values.
virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0)
Sets the split.
void AddToSet(const char *key, const char *value)
Adds a value to a key value which hosts a set of values.
virtual void SetArguments(const char *value=0, const char *description=0)
Sets the arguments.
std::vector< std::vector< double > > Data
Int_t Atoi() const
Return integer value of string.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SetExecutable(const char *value=0, const char *description=0)
virtual void SetInputDataList(const char *list="collection.xml", const char *description=0)
Sets InputDataList name.
void AddToSetDescription(const char *key, const char *description)
Adds a value to a key value which hosts a set of values.
virtual void AddToPackages(const char *name, const char *version, const char *type, const char *description=0)
Adds a package name to the package section.
TString GetString() const
virtual TGridJob * Submit(const char *)
char * Form(const char *fmt,...)
void SetValueByCmd(TString cmd, TString value)
Set the specified value to the specified command.
virtual void AddToInputSandbox(const char *value=0, const char *description=0)
Adds a file to the input sandbox.
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
virtual void AddToInputData(const char *value=0, const char *description=0)
Adds a file to the input data.
virtual void AddToMerge(const char *filenameToMerge, const char *jdlToSubmit, const char *mergedFile, const char *description=0)
Adds a package name to the package section.
virtual void AddToOutputSandbox(const char *value=0, const char *description=0)
Adds a file to the output sandbox.
TString & Remove(Ssiz_t pos)
void SetDescription(const char *key, const char *description)
Sets a value. If the entry already exists the old one is replaced.
virtual void SetOutputDirectory(const char *value=0, const char *description=0)
Sets OutputDirectory.
const char * GetValue(const char *key)
Returns the value corresponding to the provided key.
virtual void SetSplitModeMaxInputFileSize(UInt_t maxinputfilesize=0, const char *description=0)
Sets the SplitMaxInputFileSize.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual void AddToOutputArchive(const char *value=0, const char *description=0)
Adds an output archive definition.
virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0)
Sets InputDataListFormat - can be "xml-single" or "xml-multi".
typedef void((*Func_t)())
virtual void AddToRequirements(const char *value=0, const char *description=0)
Adds a requirement.
virtual void Parse(const char *filename)
fills the TAlienJDL from inputfile (should be AliEn JDL file)
virtual void SetMaxInitFailed(Int_t maxInitFailed, const char *description=0)
Sets the Maxium init failed.
virtual void Clear(const Option_t *=0)
Clears the JDL information.
virtual TString Generate()
Generates the JDL snippet.
TObject * At(Int_t idx) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual void SetSplitModeMaxNumOfFiles(UInt_t maxnumberofinputfiles=0, const char *description=0)
Sets the SplitMaxNumOfFiles.
virtual void SetTTL(UInt_t ttl=72000, const char *description=0)
To inform AliEn master about estimated Time-To-Live of included nodes.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
virtual void SetPrice(UInt_t price=1, const char *description=0)
Sets OutputDirectory.
virtual void SetEMail(const char *value=0, const char *description=0)
Sets eMail address.