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

Class RegExpLineAnalyzer

LogLineAnalyzer --+    
                  |    
   FileLineAnalyzer --+
                      |
                     RegExpLineAnalyzer


Parses lines for an arbitrary regular expression

Only one data-set is stored per time-step

One pattern group of the RegExp can be used as a unique identifier, so that more than one data-sets can be stored per time-step
Method Summary
  __init__(self, name, exp, idNr, titles)
  doAnalysis(self, line)
Analyzes line and stores and writes the data
  getData(self, time, ID)
get a data value at a specific time for a specific ID
  getIDs(self)
get a list of the available IDs
  getLast(self, ID)
get the last time for the identifier ID
  getTimes(self, ID)
get the available time for the identifier ID
  sub(self, ID)
get the data set for the identifier ID
    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

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 of the columns
Overrides:
PyFoam.LogAnalysis.FileLineAnalyzer.FileLineAnalyzer.__init__

doAnalysis(self, line)

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

getData(self, time=None, ID=None)

get a data value at a specific time for a specific ID

getIDs(self)

get a list of the available IDs

getLast(self, ID=None)

get the last time for the identifier ID

getTimes(self, ID=None)

get the available time for the identifier ID

sub(self, ID)

get the data set for the identifier ID

Generated by Epydoc 2.1 on Tue Jan 17 17:06:23 2006 http://epydoc.sf.net