Package org.powertac.logtool
Class LogtoolCore
- java.lang.Object
-
- org.powertac.logtool.LogtoolCore
-
@Service public class LogtoolCore extends Object
Reads a state log file, re-creates and updates objects, calls listeners.- Author:
- John Collins
-
-
Constructor Summary
Constructors Constructor Description LogtoolCore()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
interrupt()
void
postConstruct()
String
processCmdLine(String[] args)
Processes a command line, providing a state-log file from the local filesystem, or a remote URL.String
readStateLog(File inputFile, Analyzer... tools)
Reads state-log from given input file using the DomainObjectReader.String
readStateLog(InputStream inputStream, Analyzer... tools)
Reads state-log from given input stream using the DomainObjectReader.String
readStateLog(String source, Analyzer... tools)
Reads the given state-log source using the DomainObjectReader.String
readStateLog(URL inputURL, Analyzer... tools)
Reads state-log from given input url using the DomainObjectReader.void
setPerTimeslotPause(int msec)
Sets the per-timeslot pause value, used by Visualizer
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
-
setPerTimeslotPause
public void setPerTimeslotPause(int msec)
Sets the per-timeslot pause value, used by Visualizer
-
processCmdLine
public String processCmdLine(String[] args)
Processes a command line, providing a state-log file from the local filesystem, or a remote URL.
-
readStateLog
public String readStateLog(String source, Analyzer... tools)
Reads the given state-log source using the DomainObjectReader. Specify the state-log as a local filename or a remote URL, or pass "-" or null to read from standard-input.
-
readStateLog
public String readStateLog(File inputFile, Analyzer... tools)
Reads state-log from given input file using the DomainObjectReader.
-
readStateLog
public String readStateLog(URL inputURL, Analyzer... tools)
Reads state-log from given input url using the DomainObjectReader.
-
readStateLog
public String readStateLog(InputStream inputStream, Analyzer... tools)
Reads state-log from given input stream using the DomainObjectReader.
-
interrupt
public void interrupt()
-
-