ROOT logo
// @(#)root/net:$Id: TGridJDL.h 26013 2008-10-29 16:19:13Z brun $
// Author: Jan Fiete Grosse-Oetringhaus   28/9/2004
// Jancurova.lucia@cern.ch Slovakia  29/9/2008

/*************************************************************************
 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGridJDL
#define ROOT_TGridJDL

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGridJDL                                                             //
//                                                                      //
// Abstract base class to generate JDL files for job submission to the  //
// Grid.                                                                //
//                                                                      //
// Related classes are TGLiteJDL                                        //
//                              .                                       //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TMap
#include "TMap.h"
#endif


class TGridJDL : public TObject {
protected:
   TMap    fMap;              // stores the key, value pairs of the JDL
   TMap    fDescriptionMap;   // stores the key, value pairs of the JDL
public:
   TGridJDL() : fMap(), fDescriptionMap() { }
   virtual ~TGridJDL();

   void             SetValue(const char *key, const char *value);
   const char      *GetValue(const char *key);
   void             SetDescription(const char *key, const char *description);
   const char      *GetDescription(const char *key);
   TString          AddQuotes(const char *value);
   void             AddToSet(const char *key, const char *value);
   void             AddToSetDescription(const char *key, const char *description);
   virtual TString  Generate();
   virtual void     Clear(const Option_t* = 0);

   virtual void SetExecutable(const char *value=0, const char *description=0) = 0;
   virtual void SetArguments(const char *value=0, const char *description=0) = 0;
   virtual void SetEMail(const char *value=0, const char *description=0) = 0;
   virtual void SetOutputDirectory(const char *value=0, const char *description=0) = 0;
   virtual void SetPrice(UInt_t price=1, const char *description=0) = 0;
   virtual void SetTTL(UInt_t ttl=72000, const char *description=0) = 0;
   virtual void SetJobTag(const char *jobtag=0, const char *description=0) = 0;
   virtual void SetInputDataListFormat(const char *format="xml-single", const char *description=0) = 0;
   virtual void SetInputDataList(const char *list="collection.xml", const char *description=0) = 0;

   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) = 0;
   virtual void SetSplitArguments(const char *splitarguments=0, const char *description=0) = 0;
   virtual void SetValidationCommand(const char *value, const char *description=0) = 0;

   virtual void AddToInputSandbox(const char *value=0, const char *description=0) = 0;
   virtual void AddToOutputSandbox(const char *value=0, const char *description=0) = 0;
   virtual void AddToInputData(const char *value=0, const char *description=0) = 0;
   virtual void AddToInputDataCollection(const char *value=0, const char *description=0) = 0;
   virtual void AddToRequirements(const char *value=0, const char *description=0) = 0;
   virtual void AddToPackages(const char *name="AliRoot", const char *version="default",
                              const char *type="VO_ALICE", const char *description=0) = 0;
   virtual void AddToOutputArchive(const char *value=0, const char *description=0) = 0;

   ClassDef(TGridJDL,1)  // ABC defining interface JDL generator
};

#endif
 TGridJDL.h:1
 TGridJDL.h:2
 TGridJDL.h:3
 TGridJDL.h:4
 TGridJDL.h:5
 TGridJDL.h:6
 TGridJDL.h:7
 TGridJDL.h:8
 TGridJDL.h:9
 TGridJDL.h:10
 TGridJDL.h:11
 TGridJDL.h:12
 TGridJDL.h:13
 TGridJDL.h:14
 TGridJDL.h:15
 TGridJDL.h:16
 TGridJDL.h:17
 TGridJDL.h:18
 TGridJDL.h:19
 TGridJDL.h:20
 TGridJDL.h:21
 TGridJDL.h:22
 TGridJDL.h:23
 TGridJDL.h:24
 TGridJDL.h:25
 TGridJDL.h:26
 TGridJDL.h:27
 TGridJDL.h:28
 TGridJDL.h:29
 TGridJDL.h:30
 TGridJDL.h:31
 TGridJDL.h:32
 TGridJDL.h:33
 TGridJDL.h:34
 TGridJDL.h:35
 TGridJDL.h:36
 TGridJDL.h:37
 TGridJDL.h:38
 TGridJDL.h:39
 TGridJDL.h:40
 TGridJDL.h:41
 TGridJDL.h:42
 TGridJDL.h:43
 TGridJDL.h:44
 TGridJDL.h:45
 TGridJDL.h:46
 TGridJDL.h:47
 TGridJDL.h:48
 TGridJDL.h:49
 TGridJDL.h:50
 TGridJDL.h:51
 TGridJDL.h:52
 TGridJDL.h:53
 TGridJDL.h:54
 TGridJDL.h:55
 TGridJDL.h:56
 TGridJDL.h:57
 TGridJDL.h:58
 TGridJDL.h:59
 TGridJDL.h:60
 TGridJDL.h:61
 TGridJDL.h:62
 TGridJDL.h:63
 TGridJDL.h:64
 TGridJDL.h:65
 TGridJDL.h:66
 TGridJDL.h:67
 TGridJDL.h:68
 TGridJDL.h:69
 TGridJDL.h:70
 TGridJDL.h:71
 TGridJDL.h:72
 TGridJDL.h:73
 TGridJDL.h:74
 TGridJDL.h:75
 TGridJDL.h:76
 TGridJDL.h:77
 TGridJDL.h:78
 TGridJDL.h:79
 TGridJDL.h:80
 TGridJDL.h:81
 TGridJDL.h:82
 TGridJDL.h:83
 TGridJDL.h:84