Package PyFoam :: Package LogAnalysis :: Module NameFinderLineAnalyzer :: Class NameFinderLineAnalyzer
[show private | hide private]
[frames | no frames]

Class NameFinderLineAnalyzer

LogLineAnalyzer --+    
                  |    
ContextLineAnalyzer --+
                      |
                     NameFinderLineAnalyzer

Known Subclasses:
ValueNameFinderLineAnalyzer

Class that finds names depending on a context
Method Summary
  __init__(self, trigger, analyze, idNr, nr)
  callOnChange(self)
To be called if the name list changes
  doActualAnalysis(self, line)
Called nr lines after the match
    Inherited from ContextLineAnalyzer
  callOnMatch(self, m)
Called if the line matches
  doAnalysis(self, line)
Analyze a line
    Inherited from LogLineAnalyzer
  getTime(self)
Return current time
  goOn(self)
If the analyzer thinks the simulation should be stopped (for instance because of convergence) it returns false
  setDirectory(self, oDir)
Set the directory to which output is to be written (if any output is written)
  setParent(self, parent)
Introduces the LineAnalyzer to its supervisor
  timeChanged(self)
The value of the time has changed in the Log-file

Method Details

__init__(self, trigger, analyze, idNr=1, nr=1)
(Constructor)

Parameters:
trigger - The regular expression that has to match before data is collected
analyze - The regular expression that is used for analysis
idNr - The id of the group that is used for analysis
nr - The number of lines after the match that data is collected
Overrides:
PyFoam.LogAnalysis.ContextLineAnalyzer.ContextLineAnalyzer.__init__

callOnChange(self)

To be called if the name list changes

doActualAnalysis(self, line)

Called nr lines after the match
Parameters:
line - The line that should be analyzed
Overrides:
PyFoam.LogAnalysis.ContextLineAnalyzer.ContextLineAnalyzer.doActualAnalysis (inherited documentation)

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net