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

Class SimpleLineAnalyzer

LogLineAnalyzer --+    
                  |    
   FileLineAnalyzer --+
                      |
                     SimpleLineAnalyzer


Parses lines for an arbitrary regular expression

Differs from RegExpLineAnalyzer because it doesn't store its data
Method Summary
  __init__(self, name, exp, idNr, titles)
  doAnalysis(self, line)
Analyzes line and writes the data
    Inherited from FileLineAnalyzer
  setDirectory(self, oDir)
Creates the OutFileCollection-object
  setTitles(self, titles)
Sets the titles anews
    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
  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, name, exp, idNr=None, titles=[])
(Constructor)

Parameters:
name - name of the expression (needed for output)
exp - the regular expression
idNr - number of the pattern group that is used as an identifier
titles - titles for the data items
Overrides:
PyFoam.LogAnalysis.FileLineAnalyzer.FileLineAnalyzer.__init__

doAnalysis(self, line)

Analyzes line and writes the data
Overrides:
PyFoam.LogAnalysis.LogLineAnalyzer.LogLineAnalyzer.doAnalysis

Generated by Epydoc 2.1 on Wed Apr 5 18:32:44 2006 http://epydoc.sf.net