Package org.powertac.visualizer.logtool
Class LogtoolExecutor
- java.lang.Object
-
- org.powertac.logtool.LogtoolContext
-
- org.powertac.logtool.common.NoopAnalyzer
-
- org.powertac.visualizer.logtool.LogtoolExecutor
-
- All Implemented Interfaces:
Analyzer
public class LogtoolExecutor extends NoopAnalyzer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
LogtoolExecutor.ObjectHandler
-
Field Summary
-
Fields inherited from class org.powertac.logtool.LogtoolContext
df
-
-
Constructor Summary
Constructors Constructor Description LogtoolExecutor()
Constructor does nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
interrupt()
String
readLog(InputStream logStream, NewObjectListener listener, int timeslotPause)
void
report()
Called after reading the logfilevoid
setup()
Creates data structures, opens output file.-
Methods inherited from class org.powertac.logtool.LogtoolContext
cli, getBean, getContext, getCore, getDomainObjectReader, initialize, registerMessageListener, registerNewObjectListener, setContext
-
-
-
-
Method Detail
-
readLog
public String readLog(InputStream logStream, NewObjectListener listener, int timeslotPause)
-
setup
public void setup()
Creates data structures, opens output file. It would be nice to dump the broker names at this point, but they are not known until we hit the first timeslotUpdate while reading the file.- Specified by:
setup
in interfaceAnalyzer
- Overrides:
setup
in classNoopAnalyzer
-
report
public void report()
Description copied from interface:Analyzer
Called after reading the logfile- Specified by:
report
in interfaceAnalyzer
- Overrides:
report
in classNoopAnalyzer
-
interrupt
public void interrupt()
-
-