Package LICOS.scriptEngine.rcUtil


Classes

class  Reloader
 Reloader class. More...

Functions

def importModule
 Import a script engine application or suite.
def getMainClass
 Retrieve the main class of an application or suite.
def scriptRun
 Run the test script or suite.
def scriptLoad
 Load the script.

Variables

string __facility__ = "Online"
string __abstract__ = "GLAST LAT script engine related utility methods"
string __author__ = "S. Tuvi <stuvi@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online"
string __date__ = "2005/07/23 00:08:27"
string __updated__ = "$Date: 2005/09/22 00:29:31 $"
string __version__ = "$Revision: 1.8 $"
string __release__ = "$Name: HEAD $"
string __credits__ = "SLAC"
tuple reloadModules = Reloader()


Function Documentation

def LICOS.scriptEngine.rcUtil.getMainClass   module  ) 
 

Retrieve the main class of an application or suite.

Find out if the class inherits from FSM otherwise it is not the main class. If multiple main classes exist in one module then the one farthest away from FSM in the inheritance chain is used.

Parameters:
module Application or suite module
Returns:
Main class or None

Definition at line 189 of file rcUtil.py.

def LICOS.scriptEngine.rcUtil.importModule   appName,
  reload = 1,
  dontReloadList = [],
  showUnloadedModules = 0
 

Import a script engine application or suite.

Parameters:
appName Name of the module or pathname of the python script
reload 1 = Reload all modules that have been loaded since the Script Engine started (default) 0 = Do not reload modules (used if a suite is being loaded)
dontReloadList Optional parameter which specifies the additional list of module prefixes that should not be reloaded. If this parameter is missing then the default list (Reloader.DONT_RELOAD_LIST) is used, if it is specified then it gets appended to the default list.
Returns:
The name of the module and the resolved pathname

Definition at line 97 of file rcUtil.py.

def LICOS.scriptEngine.rcUtil.scriptLoad   script,
  common,
  reload = 1,
  args,
  kwargs
 

Load the script.

Parameters:
common ScriptEngineCommon instance
reload Whether the reloading should be applied to the script. If reload=1, preference value is used, otherwise reloading is disabled
args Positional arguments
kwargs Keyword arguments

Definition at line 227 of file rcUtil.py.

def LICOS.scriptEngine.rcUtil.scriptRun   app  ) 
 

Run the test script or suite.

Returns:
Status of the last transition executed

Definition at line 217 of file rcUtil.py.


Variable Documentation

string __abstract__ = "GLAST LAT script engine related utility methods" [static]
 

Definition at line 11 of file rcUtil.py.

string __author__ = "S. Tuvi <stuvi@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online" [static]
 

Definition at line 12 of file rcUtil.py.

string __credits__ = "SLAC" [static]
 

Definition at line 17 of file rcUtil.py.

string __date__ = "2005/07/23 00:08:27" [static]
 

Definition at line 13 of file rcUtil.py.

string __facility__ = "Online" [static]
 

Definition at line 10 of file rcUtil.py.

string __release__ = "$Name: HEAD $" [static]
 

Definition at line 16 of file rcUtil.py.

string __updated__ = "$Date: 2005/09/22 00:29:31 $" [static]
 

Definition at line 14 of file rcUtil.py.

string __version__ = "$Revision: 1.8 $" [static]
 

Definition at line 15 of file rcUtil.py.

tuple reloadModules = Reloader() [static]
 

Definition at line 95 of file rcUtil.py.


Generated on Thu Apr 27 20:53:31 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO