Package PyFoam :: Package Applications :: Module Comparator :: Class ComparatorData
[hide private]
[frames] | no frames]

Class ComparatorData

source code

object --+
         |
        ComparatorData

The object that holds the actual data

Instance Methods [hide private]
 
__init__(self, doc)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__parseBase(self, e) source code
 
__len__(self)
Returns: The total number of variations
source code
 
__getitem__(self, nr)
Returns: dictionary with the variation
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, doc)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • doc - the parsed XML-data from which the object is constructed
Overrides: object.__init__

__parseBase(self, e)

source code 
Parameters:
  • e - The 'base'-element

__len__(self)
(Length operator)

source code 
Returns:
The total number of variations

__getitem__(self, nr)
(Indexing operator)

source code 
Parameters:
  • nr - Number of the variation
Returns:
dictionary with the variation