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
-
Constructor Summary
Constructors Constructor Description LogtoolExecutor()Constructor does nothing. -
Method Summary
Modifier and Type Method Description voidinterrupt()StringreadLog(InputStream logStream, NewObjectListener listener, int timeslotPause)voidreport()voidsetup()Creates data structures, opens output file.Methods inherited from class org.powertac.logtool.LogtoolContext
cli, getBean, getContext, getCore, getDomainObjectReader, initialize, registerMessageListener, registerNewObjectListener, setContext
-
Constructor Details
-
LogtoolExecutor
public LogtoolExecutor()Constructor does nothing. Call setup() before reading a file to get this to work.
-
-
Method Details
-
readLog
-
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()- Specified by:
reportin interfaceAnalyzer- Overrides:
reportin classNoopAnalyzer
-
interrupt
public void interrupt()
-