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

Class SimpleLineAnalyzer

  LogLineAnalyzer --+        
                    |        
  GeneralLineAnalyzer --+    
                        |    
GeneralSimpleLineAnalyzer --+
                            |
                           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)
    Inherited from GeneralSimpleLineAnalyzer
  addToFiles(self, match)
Method that adds matched data to files
  addToTimelines(self, match)
Method that adds matched data to timelines
    Inherited from GeneralLineAnalyzer
  doAnalysis(self, line)
General analysis method.
  endAnalysis(self, match)
Method at the end of a successfull match
  getTimeline(self, name)
Return the timeline as two list: the times and the values
  setDirectory(self, oDir)
Creates the OutFileCollection-object
  setTitles(self, titles)
Sets the titles anew
  startAnalysis(self, match)
Method at the start of a successfull match
  timeChanged(self)
Sets the current time in the timelines
    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

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.SimpleLineAnalyzer.GeneralSimpleLineAnalyzer.__init__

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