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

Class RegExpTimeLineLineAnalyzer

source code


Class that stores results as timelines, too

Instance Methods [hide private]
 
__init__(self, name, exp, titles=[], startTime=None, endTime=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from RegExpLineAnalyzer
 
addToFiles(self, match)
Method that adds matched data to files
source code
 
addToTimelines(self, match)
Method that adds matched data to timelines
source code
 
getData(self, time=None, ID=None)
get a data value at a specific time for a specific ID
source code
 
getIDs(self)
get a list of the available IDs
source code
 
getLast(self, ID=None)
get the last time for the identifier ID
source code
 
getTimes(self, ID=None)
get the available time for the identifier ID
source code
 
startAnalysis(self, match)
Method at the start of a successfull match
source code
 
stringToMatch(self, line)
Returns string to match.
source code
 
sub(self, ID)
get the data set for the identifier ID
source code
    Inherited from GeneralLineAnalyzer.GeneralLineAnalyzer
 
doAnalysis(self, line)
General analysis method.
source code
 
endAnalysis(self, match)
Method at the end of a successfull match
source code
 
getCurrentData(self)
Give back the current analyzed data in a dictionary
source code
 
getTimeline(self, name)
Returns: the timeline as two list: the times and the values
source code
 
setDirectory(self, oDir)
Creates the OutFileCollection-object
source code
 
setMaster(self, master)
Assign another line-analyzer that will do the actual data gathering
source code
 
setTitles(self, titles)
Sets the titles anew
source code
 
tearDown(self)
Closes files
source code
 
timeChanged(self)
Sets the current time in the timelines
source code
    Inherited from LogLineAnalyzer.LogLineAnalyzer
 
addListener(self, func) source code
 
getTime(self)
Returns: current time
source code
 
goOn(self)
If the analyzer thinks the simulation should be stopped (for instance because of convergence) it returns false
source code
 
notify(self, *data)
Notifys the event listeners of an event
source code
 
setParent(self, parent)
Introduces the LineAnalyzer to its supervisor
source code
 
writeProgress(self, msg)
Let the parent write an additional progress message
source code
Static Methods [hide private]
    Inherited from GeneralLineAnalyzer.GeneralLineAnalyzer
 
fName(n) source code
 
setPhase(p='') source code
Class Variables [hide private]
    Inherited from RegExpLineAnalyzer
  floatRegExp = '[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, exp, titles=[], startTime=None, endTime=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • name - name of the expression (needed for output
  • exp - the regular expression, %f% will be replaced with the regular expression for a float
  • titles - titles of the columns
Overrides: object.__init__