ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
python.TransformConfig.JobConfig Class Reference
Inheritance diagram for python.TransformConfig.JobConfig:
Collaboration diagram for python.TransformConfig.JobConfig:

Public Member Functions

def __init__ (self, name=None)
 
def __str__ (self, prefix='')
 
def __len__ (self)
 
def __iter__ (self)
 
def properties (self)
 

Private Member Functions

def _attributeDictionary (self)
 

Private Attributes

 __name
 
 __attributes
 

Static Private Attributes

 __slots__
 

Detailed Description

Definition at line 317 of file TransformConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TransformConfig.JobConfig.__init__ (   self,
  name = None 
)
name is used in printout. The default name is derived from the filename of the python file
where constructor is called

Definition at line 320 of file TransformConfig.py.

320  def __init__(self,name=None):
321  """name is used in printout. The default name is derived from the filename of the python file
322  where constructor is called"""
323 
324  if name is None:
325  filename = os.path.basename(sys._getframe(1).f_code.co_filename)
326  name = os.path.splitext(filename)[0]
327  self.__name = name
328  self.__attributes = {} # dictionary to store values of attributes (managed by Descriptors)
329 
330 

Member Function Documentation

◆ __iter__()

def python.TransformConfig.JobConfig.__iter__ (   self)
Provide iteration over the full list of properties (the Descriptors, not the values)

Definition at line 347 of file TransformConfig.py.

347  def __iter__(self):
348  """Provide iteration over the full list of properties (the Descriptors, not the values)"""
349  return iter(self.properties())
350 
351 

◆ __len__()

def python.TransformConfig.JobConfig.__len__ (   self)
Return the total number of properties (this class plus all base classes)

Definition at line 342 of file TransformConfig.py.

342  def __len__(self):
343  """Return the total number of properties (this class plus all base classes)"""
344  return len(self.properties())
345 
346 

◆ __str__()

def python.TransformConfig.JobConfig.__str__ (   self,
  prefix = '' 
)

Reimplemented in python.TransformConfig.TransformConfig.

Definition at line 331 of file TransformConfig.py.

331  def __str__(self,prefix=''):
332  prefix += self.__name
333  me = []
334  for descr in self.properties():
335  name = descr.name()
336  value = getattr(self,name)
337  me.append( "%s.%s = %r \t# %s" % (prefix,name,value,descr.help()) )
338  prefix = ' '*len(prefix)
339  return os.linesep.join(me)
340 
341 

◆ _attributeDictionary()

def python.TransformConfig.JobConfig._attributeDictionary (   self)
private
Dictionary to store the values. Used in the class Descriptor.

Definition at line 352 of file TransformConfig.py.

352  def _attributeDictionary(self):
353  """Dictionary to store the values. Used in the class Descriptor."""
354  return self.__attributes
355 
356 

◆ properties()

def python.TransformConfig.JobConfig.properties (   self)
Return the full list of properties (the descriptors, not the values)

Definition at line 357 of file TransformConfig.py.

357  def properties(self):
358  """Return the full list of properties (the descriptors, not the values)"""

Member Data Documentation

◆ __attributes

python.TransformConfig.JobConfig.__attributes
private

Definition at line 328 of file TransformConfig.py.

◆ __name

python.TransformConfig.JobConfig.__name
private
name is used in printout. The default name is derived from the filename of the python file
where constructor is called

Definition at line 327 of file TransformConfig.py.

◆ __slots__

python.TransformConfig.JobConfig.__slots__
staticprivate

Definition at line 318 of file TransformConfig.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:783
python.JsonUtils.properties
properties
Definition: JsonUtils.py:96
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18