register_user_models.py

Go to the documentation of this file.
00001 from GBSModelRegistry     import  GetModelRegistry
00002 from GBSModel             import  GBSModel
00003 
00004 from GBSJobAnalyser       import GBSJobAnalyser
00005 from GBSJob               import GBSJob
00006 from GBSManager           import GBSManager
00007 
00008 from MinosDCMTask         import MinosDCMTask
00009 
00010 from MinosRSMJob          import MinosRSMJob
00011 from MinosRSMJobAnalyser  import MinosRSMJobAnalyser
00012 from MinosRSMTask         import MinosRSMTask
00013 
00014 ##  Register DCMQuery model
00015 
00016 description = """This model extends Task so that it incorporates a DCM query.
00017 Other roles are unchanged.
00018 """
00019 
00020 m = GBSModel("DCMquery","The DCM Query",description)
00021 
00022 m.AddMapping("Manager",     GBSManager, {})
00023 m.AddMapping("Task",        MinosDCMTask,{})
00024 m.AddMapping("Job",         GBSJob, {})
00025 m.AddMapping("JobAnalyser", GBSJobAnalyser,{})
00026 
00027 GetModelRegistry().AddModel(m)
00028 
00029 ##  Register RSMonteCarlo model
00030 
00031 description = """The Run Seeded Monte Carlo (RSMonteCarlo) model is one in which the
00032 Monte Carlo random number seed is determined by the run and subrun
00033 numbers. Job names are of the form:-
00034 
00035   job_rrrrrrrr_ssss
00036 
00037   where
00038 
00039     rrrrrrrr  is an 8 digit zero padded run number
00040     ssss      is a 4 digit zero padded subrun number
00041 
00042 The local job environment always includes:-
00043 
00044   run=<run-number>
00045   subrun=<subrun-number>
00046 
00047 The JobAnalyser supports the request: NEW_SEED which involves renaming
00048 the job to the next free subrun number for the job's run number.
00049 """
00050 
00051 m = GBSModel("RSMonteCarlo","The Run Seeded Monte Carlo",description)
00052 
00053 m.AddMapping("Manager",     GBSManager, {})
00054 m.AddMapping("Task",        MinosRSMTask,{})
00055 m.AddMapping("Job",         MinosRSMJob, {})
00056 m.AddMapping("JobAnalyser", MinosRSMJobAnalyser,{})
00057 
00058 GetModelRegistry().AddModel(m)

Generated on Fri Mar 5 09:25:41 2010 for gbs by  doxygen 1.4.7