Package PyFoam :: Package Execution :: Module AnalyzedCommon :: Class AnalyzedCommon
[hide private]
[frames] | no frames]

Class AnalyzedCommon

source code

object --+
         |
        AnalyzedCommon
Known Subclasses:
AnalyzedWatcher.AnalyzedWatcher, StepAnalyzedCommon.StepAnalyzedCommon, AnalyzedRunner.AnalyzedRunner

This class collects information and methods that are needed for handling analyzers

Instance Methods [hide private]
  __init__(self, filename, analyzer)
  tearDown(self)
  listAnalyzers(self)
  getAnalyzer(self, name)
  addAnalyzer(self, name, analyzer)
  lineHandle(self, line)
Not to be called: calls the analyzer for the current line
  reset(self)
reset the analyzer
  getDirname(self)
Get the name of the directory where the data is written to
  getTime(self)
Get the execution time

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, filename, analyzer)
(Constructor)

source code 
Parameters:
  • filename - name of the file that is being analyzed
  • analyzer - the analyzer itself
Overrides: object.__init__

tearDown(self)

source code 
None

listAnalyzers(self)

source code 
Returns:
A list with the names of the analyzers

getAnalyzer(self, name)

source code 
Parameters:
  • name - name of the LineAnalyzer to get

addAnalyzer(self, name, analyzer)

source code 
Parameters:
  • name - name of the LineAnalyzer to add
  • analyzer - the analyzer to add

lineHandle(self, line)

source code 
Not to be called: calls the analyzer for the current line

reset(self)

source code 
reset the analyzer

getDirname(self)

source code 
Get the name of the directory where the data is written to

getTime(self)

source code 
Get the execution time