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
Modifier and Type Method Description voidinterrupt()voidpostConstruct()StringprocessCmdLine(String[] args)Processes a command line, providing a state-log file from the local filesystem, or a remote URL.StringreadStateLog(File inputFile, Analyzer... tools)Reads state-log from given input file using the DomainObjectReader.StringreadStateLog(InputStream inputStream, Analyzer... tools)Reads state-log from given input stream using the DomainObjectReader.StringreadStateLog(String source, Analyzer... tools)Reads the given state-log source using the DomainObjectReader.StringreadStateLog(URL inputURL, Analyzer... tools)Reads state-log from given input url using the DomainObjectReader.voidsetPerTimeslotPause(int msec)Sets the per-timeslot pause value, used by Visualizer
-
Constructor Details
-
LogtoolCore
public LogtoolCore()Default constructor
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct() -
setPerTimeslotPause
public void setPerTimeslotPause(int msec)Sets the per-timeslot pause value, used by Visualizer -
processCmdLine
Processes a command line, providing a state-log file from the local filesystem, or a remote URL. -
readStateLog
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
Reads state-log from given input file using the DomainObjectReader. -
readStateLog
Reads state-log from given input url using the DomainObjectReader. -
readStateLog
Reads state-log from given input stream using the DomainObjectReader. -
interrupt
public void interrupt()
-