HPS-MC
JobScriptDatabase Class Reference

Database of job scripts. More...

Public Member Functions

def __init__ (self)
 
def get_script_path (self, name)
 Get path to job script from job name. More...
 
def get_script_names (self)
 Get list of all script names. More...
 
def get_scripts (self)
 Get dict containing paths to scripts sorted by script names. More...
 
def exists (self, name)
 Test if job script exists in dict. More...
 

Public Attributes

 scripts
 dict of paths to job scripts sorted by name More...
 

Detailed Description

Database of job scripts.

Definition at line 125 of file job.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Definition at line 129 of file job.py.

Member Function Documentation

◆ exists()

def exists (   self,
  name 
)

Test if job script exists in dict.

Returns
True if job name is key in job dict

Definition at line 154 of file job.py.

◆ get_script_names()

def get_script_names (   self)

Get list of all script names.

Definition at line 146 of file job.py.

◆ get_script_path()

def get_script_path (   self,
  name 
)

Get path to job script from job name.

Parameters
jobname
Returns
path to job script

Definition at line 140 of file job.py.

◆ get_scripts()

def get_scripts (   self)

Get dict containing paths to scripts sorted by script names.

Definition at line 150 of file job.py.

Member Data Documentation

◆ scripts

scripts

dict of paths to job scripts sorted by name

Definition at line 135 of file job.py.


The documentation for this class was generated from the following file: