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

Class GeneralLineAnalyzer

source code

                     object --+    
                              |    
LogLineAnalyzer.LogLineAnalyzer --+
                                  |
                                 GeneralLineAnalyzer
Known Subclasses:
LinearSolverLineAnalyzer.GeneralLinearSolverLineAnalyzer, DeltaTLineAnalyzer.GeneralDeltaTLineAnalyzer, SimpleLineAnalyzer.GeneralSimpleLineAnalyzer, FileLineAnalyzer.FileLineAnalyzer, TimeLineLineAnalyzer.TimeLineLineAnalyzer, ContinuityLineAnalyzer.GeneralContinuityLineAnalyzer, ExecutionTimeLineAnalyzer.GeneralExecutionLineAnalyzer, RegExpLineAnalyzer.RegExpLineAnalyzer, BoundingLineAnalyzer.GeneralBoundingLineAnalyzer

Base class for analyzers that write data to files and store time-lines

Combines the capabilities of TimeLineLineAnalyzer and FileLineAnalyzer

Instance Methods [hide private]
  __init__(self, doTimelines=False, doFiles=False, titles=[])
  setTitles(self, titles)
Sets the titles anew
  setDirectory(self, oDir)
Creates the OutFileCollection-object
  timeChanged(self)
Sets the current time in the timelines
  getTimeline(self, name)
  doAnalysis(self, line)
General analysis method.
  startAnalysis(self, match)
Method at the start of a successfull match
  endAnalysis(self, match)
Method at the end of a successfull match
  addToTimelines(self, match)
Method that adds matched data to timelines
  addToFiles(self, match)
Method that adds matched data to files

Inherited from LogLineAnalyzer.LogLineAnalyzer: getTime, goOn, setParent

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


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, doTimelines=False, doFiles=False, titles=[])
(Constructor)

source code 
Parameters:
  • titles - The titles of the data elements
Overrides: LogLineAnalyzer.LogLineAnalyzer.__init__

setTitles(self, titles)

source code 
Sets the titles anew
Parameters:
  • titles - the new titles

setDirectory(self, oDir)

source code 
Creates the OutFileCollection-object
Overrides: LogLineAnalyzer.LogLineAnalyzer.setDirectory

timeChanged(self)

source code 
Sets the current time in the timelines
Overrides: LogLineAnalyzer.LogLineAnalyzer.timeChanged

getTimeline(self, name)

source code 
Parameters:
  • name - Name of the timeline to return
Returns:
the timeline as two list: the times and the values

doAnalysis(self, line)

source code 
General analysis method. Derived classes should instead override callbacks
Overrides: LogLineAnalyzer.LogLineAnalyzer.doAnalysis

startAnalysis(self, match)

source code 
Method at the start of a successfull match

endAnalysis(self, match)

source code 
Method at the end of a successfull match

addToTimelines(self, match)

source code 
Method that adds matched data to timelines
Parameters:
  • match - data matched by a regular expression

addToFiles(self, match)

source code 
Method that adds matched data to files
Parameters:
  • match - data matched by a regular expression