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 classLogtoolExecutor.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 voidinterrupt()StringreadLog(InputStream logStream, NewObjectListener listener, int timeslotPause)voidreport()Called after reading the logfilevoidsetup()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:
setupin interfaceAnalyzer- Overrides:
setupin classNoopAnalyzer
-
report
public void report()
Description copied from interface:AnalyzerCalled after reading the logfile- Specified by:
reportin interfaceAnalyzer- Overrides:
reportin classNoopAnalyzer
-
interrupt
public void interrupt()
-
-