![]() |
ATLAS Offline Software
|
Public Member Functions | |
| def | __init__ (self, context='') |
| def | __bool__ (self) |
| def | __eq__ (self, rhs) |
| def | __lt__ (self, rhs) |
| def | __call__ (self) |
| def | __str__ (self) |
| def | __iadd__ (self, value) |
| def | is_locked (self) |
| def | set_On (self) |
| def | set_Off (self) |
| def | lock (self) |
| def | unlock (self) |
| def | __setattr__ (self, name, n_value) |
| def | set_Value (self, n_value) |
| def | get_Value (self) |
| def | set_Value_and_Lock (self, n_value) |
| def | isDefault (self) |
| def | help (self) |
| def | toBePrinted (self) |
| def | print_JobProperty (self, mode='minimal') |
| def | __new__ (self, name, bases, dct) |
Static Public Attributes | |
| bool | statusOn = False |
| allowedTypes = list() | |
| allowedValues = list() | |
| StoredValue = None | |
Private Member Functions | |
| def | _do_action (self) |
| def | _undo_action (self) |
Private Attributes | |
| __name__ | |
| _context_name | |
| _locked | |
Static Private Attributes | |
| _log = Logging.logging.getLogger('JobProperty ::') | |
| _nInstancesContextDict = dict() | |
| bool | _locked = False |
Base class for the job properties.
The job properties are class definitions that will be
instanciated at the time the job property is added to global
container for the job properties called "jobproperties".
The job properties can be also added to sub-containers within
the "jobproperties" container.
All the job properties must be defined as subclasses of
"JobProperty" and, as derived classes, can re-define:
statusOn, allowedTypes and allowedValues and StoredValue
The setting of the StoredValue will automatically check the new
value against the lists allowedTypes and allowedValues. A given
StoredValue can not be changed if the corresponding job property
is locked.
The actual Value of the JobProperty is (statusOn AND StoredValue)
Definition at line 105 of file JobProperties.py.
| def python.JobProperties.JobProperty.__init__ | ( | self, | |
context = '' |
|||
| ) |
Each JobProperty has only one possible instance in a given
context. The context is given by the container and sub-containers
to which the job property belongs.
Definition at line 137 of file JobProperties.py.
| def python.JobProperties.JobProperty.__bool__ | ( | self | ) |
Definition at line 155 of file JobProperties.py.
| def python.JobProperties.JobProperty.__call__ | ( | self | ) |
Definition at line 174 of file JobProperties.py.
| def python.JobProperties.JobProperty.__eq__ | ( | self, | |
| rhs | |||
| ) |
Definition at line 158 of file JobProperties.py.
| def python.JobProperties.JobProperty.__iadd__ | ( | self, | |
| value | |||
| ) |
Definition at line 180 of file JobProperties.py.
| def python.JobProperties.JobProperty.__lt__ | ( | self, | |
| rhs | |||
| ) |
Definition at line 166 of file JobProperties.py.
|
inherited |
Definition at line 78 of file JobProperties.py.
| def python.JobProperties.JobProperty.__setattr__ | ( | self, | |
| name, | |||
| n_value | |||
| ) |
Definition at line 245 of file JobProperties.py.
| def python.JobProperties.JobProperty.__str__ | ( | self | ) |
Definition at line 177 of file JobProperties.py.
|
private |
A place-holder for actions to be taken at the time the JobProperty.StoredValue is set or JobProperty.statusOn is set to True. (for advanced use)
Definition at line 190 of file JobProperties.py.
|
private |
A place-holder for actions to be taken at the time the JobProperty.statusOn is set to False. (for advanced use)
Definition at line 199 of file JobProperties.py.
| def python.JobProperties.JobProperty.get_Value | ( | self | ) |
Gets the value of the job property.
This is the recommended way top retrieve the actual
value of the job property. For boolean properties it
gives the and(statusOn,StoredValue). For the rest of the
properties it gives the StoredValue if the statusOn==True
otherwise it gives None.
Definition at line 299 of file JobProperties.py.
| def python.JobProperties.JobProperty.help | ( | self | ) |
Prints the documentation available for the JobProperty.
together with the actual value, values allowed and types
allowed.
Definition at line 335 of file JobProperties.py.
| def python.JobProperties.JobProperty.is_locked | ( | self | ) |
Definition at line 187 of file JobProperties.py.
| def python.JobProperties.JobProperty.isDefault | ( | self | ) |
check whether a flag has been modified or if it is still containing its default value.
Definition at line 325 of file JobProperties.py.
| def python.JobProperties.JobProperty.lock | ( | self | ) |
lock the property
Definition at line 225 of file JobProperties.py.
| def python.JobProperties.JobProperty.print_JobProperty | ( | self, | |
mode = 'minimal' |
|||
| ) |
Prints the information of the JobProperty
The available options are: 'minimal','full','tree','tree&value','tree&valuenondefault'
Definition at line 374 of file JobProperties.py.
| def python.JobProperties.JobProperty.set_Off | ( | self | ) |
| def python.JobProperties.JobProperty.set_On | ( | self | ) |
| def python.JobProperties.JobProperty.set_Value | ( | self, | |
| n_value | |||
| ) |
Sets the value of the JobProperty .
MyJobProperty.set_Value(NewValue)
is equivalent to
MyJobProperty=NewValue
It is checked the type and if the value is allowed. The
statusOn is set to True automatically.
This method is here for backwards compatibility.
Definition at line 283 of file JobProperties.py.
| def python.JobProperties.JobProperty.set_Value_and_Lock | ( | self, | |
| n_value | |||
| ) |
Sets the value of the JobProperty and lock it in one command .
Definition at line 319 of file JobProperties.py.
| def python.JobProperties.JobProperty.toBePrinted | ( | self | ) |
compute a string which is : empty if flag is set to default value
(<DefaultValue> if flag not set to default value or flas is off
Definition at line 351 of file JobProperties.py.
| def python.JobProperties.JobProperty.unlock | ( | self | ) |
|
private |
Definition at line 148 of file JobProperties.py.
|
private |
Definition at line 149 of file JobProperties.py.
|
staticprivate |
Definition at line 135 of file JobProperties.py.
|
private |
Definition at line 228 of file JobProperties.py.
|
staticprivate |
Definition at line 133 of file JobProperties.py.
|
staticprivate |
Definition at line 134 of file JobProperties.py.
|
static |
Definition at line 130 of file JobProperties.py.
|
static |
Definition at line 131 of file JobProperties.py.
|
static |
Definition at line 129 of file JobProperties.py.
|
static |
Definition at line 132 of file JobProperties.py.
1.8.18