FGIJob::FGIJob Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 application
 backend
 inputsandbox
 outputsandbox
 status
 id
 inputdir
 outputdir


Detailed Description

Fake Ganga Interface: Job: 

Definition at line 8 of file FGIJob.py.


Member Function Documentation

def FGIJob::FGIJob::__init__ (   self,
  dict 
)

Definition at line 12 of file FGIJob.py.

00012                            :
00013         self.application    = FGIExecutable.FGIExecutable()
00014         self.backend        = None
00015         self.inputsandbox   = []
00016         self.outputsandbox  = []
00017         self.status         = 'new'
00018         if dict.has_key('application'):   self.application = dict['application']
00019         if dict.has_key('backend'):       self.backend = dict['backend']
00020         if dict.has_key('inputsandbox'):  self.inputsandbox = dict['inputsandbox']
00021         if dict.has_key('outputsandbox'): self.outputsandbox = dict['outputsandbox']
00022         self.id             = 0
00023         top_dir = GBSConfig.GetConfig().GetValue("FGITopDir")
00024         if top_dir == None: top_dir = "."
00025         while os.path.isdir(top_dir + '/' + str(self.id)): self.id += 1
00026         os.mkdir(top_dir + '/' + str(self.id),0750)
00027         self.inputdir       = top_dir + '/' + str(self.id) + "/input/"
00028         self.outputdir      = top_dir + '/' + str(self.id) + "/output/"
00029 
    def __repr__(self):

def FGIJob::FGIJob::__repr__ (   self  ) 

Definition at line 30 of file FGIJob.py.

00030                       :
00031         txt = "FGIJob ("
00032         txt += "status = "        + repr(self.status) + ","
00033         txt += "inputdir = "      + repr(self.inputdir) + ","
00034         txt += "outputdir = "     + repr(self.outputdir) + ","
00035         txt += "outputsandbox = " + repr(self.outputsandbox) + ","
00036         txt += "id = "            + repr(self.id) + ","
00037         txt += "inputsandbox = "  + repr(self.inputsandbox) + ","
00038         txt += "application = "   + repr(self.application) + ","
00039         txt += "backend = "       + repr(self.backend) + ","
00040         txt += ")"
00041         return txt
        return txt


Member Data Documentation

FGIJob::FGIJob::application

Definition at line 13 of file FGIJob.py.

FGIJob::FGIJob::backend

Definition at line 14 of file FGIJob.py.

FGIJob::FGIJob::inputsandbox

Definition at line 15 of file FGIJob.py.

FGIJob::FGIJob::outputsandbox

Definition at line 16 of file FGIJob.py.

FGIJob::FGIJob::status

Definition at line 17 of file FGIJob.py.

FGIJob::FGIJob::id

Definition at line 22 of file FGIJob.py.

FGIJob::FGIJob::inputdir

Definition at line 27 of file FGIJob.py.

FGIJob::FGIJob::outputdir

Definition at line 28 of file FGIJob.py.


The documentation for this class was generated from the following file:
Generated on Mon Feb 18 14:42:02 2008 for gbs by  doxygen 1.5.4