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

Class FoamLogAnalyzer

Known Subclasses:
EchoLogAnalyzer, StandardLogAnalyzer, UtilityAnalyzer

Base class for all analyzers

Administrates and calls a number of LogLineAnlayzers for each line
Method Summary
  __init__(self, progress)
  addAnalyzer(self, name, obj)
Adds an analyzer
  addTimeListener(self, listener)
  analyze(self, fh)
Analyzes a file (one line at a time)
  analyzeLine(self, line)
Calls all the anlyzers for a line
  getAnalyzer(self, name)
Get the LogLineAnalyzer name
  getDirectory(self)
Gets the output directory
  getTime(self)
Gets the current time
  goOn(self)
Checks with all the analyzers
  setDirectory(self, d)
Sets the output directory for all the analyzers
  setTime(self, time)
Sets the time and alert all the LineAnalyzers that the time has changed
  tearDown(self)
Remove reference to self in children (hoping to remove circular dependencies)

Method Details

__init__(self, progress=False)
(Constructor)

Parameters:
progress - Print time progress on console?

addAnalyzer(self, name, obj)

Adds an analyzer

obj - A LogLineAnalyzer name - the name of the analyzer

addTimeListener(self, listener)

Parameters:
listener - An object that is notified when the time changes. Has to implement a timeChanged method

analyze(self, fh)

Analyzes a file (one line at a time)

fh - handle of the file

analyzeLine(self, line)

Calls all the anlyzers for a line

getAnalyzer(self, name)

Get the LogLineAnalyzer name

getDirectory(self)

Gets the output directory

getTime(self)

Gets the current time

goOn(self)

Checks with all the analyzers

If one analyzer returns False it returns False

setDirectory(self, d)

Sets the output directory for all the analyzers

setTime(self, time)

Sets the time and alert all the LineAnalyzers that the time has changed
Parameters:
time - the new value of the time

tearDown(self)

Remove reference to self in children (hoping to remove circular dependencies)

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