All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.log.LogReport

java.lang.Object
   |
   +----pinball.log.LogReport

public class LogReport
extends Object
This reads the log file and generates an html file with the statistics.


Variable Index

 o ballLocation
Location of the ball found.
 o ballLocator
Finds the ball location.
 o ballStats
Does the statistics on the ball.
 o ballX
The ball's location.
 o ballY
The ball's location.
 o checkHeader
Only does the header once.
 o display
Says if the display should be on.
 o header
Does the header report.
 o input
File that data the data.
 o lastFrame
The last frame viewed.
 o lastTime
Time for the last frame.
 o logFileAccess
Used to open the log files.
 o logFiles
The log files that have been processed.
 o oncePerFrame
Do this operation only once per frame.
 o oncePerGame
Do this operation only once per game.
 o output
File that will get the data.
 o timestamp
Does the time stamp report.
 o viewer
The area to view the video log.

Constructor Index

 o LogReport(String, DataOutputStream, boolean)
Creates the log reports.

Method Index

 o begining()
Write the begining of the html output file.
 o check(String)
Check the commands of the log file.
 o end()
Write the end of the log file, and close it up.
 o middle()
Read the lines of the log file.
 o process()
Proces the log files.

Variables

 o input
 private BufferedReader input
File that data the data.

 o output
 private PrintWriter output
File that will get the data.

 o ballStats
 private BallStats ballStats
Does the statistics on the ball.

 o header
 private HeaderReport header
Does the header report.

 o timestamp
 private TimeStampReport timestamp
Does the time stamp report.

 o checkHeader
 private boolean checkHeader
Only does the header once.

 o logFiles
 private Vector logFiles
The log files that have been processed.

 o viewer
 private Viewer viewer
The area to view the video log.

 o lastFrame
 private int lastFrame
The last frame viewed.

 o ballX
 private int ballX
The ball's location.

 o ballY
 private int ballY
The ball's location.

 o ballLocator
 private BallLocator ballLocator
Finds the ball location.

 o ballLocation
 private Point ballLocation
Location of the ball found.

 o oncePerFrame
 private boolean oncePerFrame
Do this operation only once per frame.

 o oncePerGame
 private boolean oncePerGame
Do this operation only once per game.

 o lastTime
 private long lastTime
Time for the last frame. Used to pause between the frames.

 o logFileAccess
 private LogFileAccess logFileAccess
Used to open the log files.

 o display
 private boolean display
Says if the display should be on.

Constructors

 o LogReport
 public LogReport(String start,
                  DataOutputStream out,
                  boolean display)
Creates the log reports.

Parameters:
start - The first log file to start with.
out - the file that will have the generated report.
display - says if the display should be turned on.

Methods

 o process
 public void process()
Proces the log files.

 o begining
 private void begining()
Write the begining of the html output file.

 o middle
 private void middle()
Read the lines of the log file.

 o check
 private void check(String data)
Check the commands of the log file.

Parameters:
data - the line from the log file.
 o end
 private void end()
Write the end of the log file, and close it up.


All Packages  Class Hierarchy  This Package  Previous  Next  Index