public class LogExtractor
extends java.lang.Object
Constructor and Description |
---|
LogExtractor(LogReader reader,
Config config)
Construct a LogViewer.
|
Modifier and Type | Method and Description |
---|---|
double |
getScore() |
int |
getTime() |
static void |
main(java.lang.String[] args)
Launch a new LogViewer.
|
java.awt.image.BufferedImage |
paintImage() |
void |
setDimension(int width,
int height) |
void |
showTimestep(int time)
Show a particular timestep in the viewer.
|
boolean |
step() |
void |
writeImage(java.lang.String filename) |
public LogExtractor(LogReader reader, Config config) throws LogException
reader
- The LogReader to read.config
- The system configuration.LogException
- If there is a problem reading the log.public void showTimestep(int time)
time
- The timestep to show. If this value is out of range then this method will silently return.public int getTime()
public boolean step()
public void setDimension(int width, int height)
public double getScore()
public java.awt.image.BufferedImage paintImage()
public void writeImage(java.lang.String filename)
public static void main(java.lang.String[] args)
args
- Command line arguments. Accepts only one argument: the name of a log file.