All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.log.BallStats

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

public class BallStats
extends Object
Find the statistics for the balls in play.


Constructor Index

 o BallStats(PrintWriter)
Creates the statistics for the balls in play.

Method Index

 o process(StringTokenizer)
Finds how long a ball was in play and the number of hits for it.
 o writeInfo()
Writes the information about the balls to the output file.

Constructors

 o BallStats
 public BallStats(PrintWriter p)
Creates the statistics for the balls in play.

Parameters:
p - the file to write the output to.

Methods

 o process
 public void process(StringTokenizer tokens)
Finds how long a ball was in play and the number of hits for it.

Parameters:
tokens - the line of tokens to process.
 o writeInfo
 public void writeInfo()
Writes the information about the balls to the output file.


All Packages  Class Hierarchy  This Package  Previous  Next  Index