becker.xtras.gasPump
Class GasPumpGUI

java.lang.Object
  extended by becker.xtras.gasPump.GasPumpGUI

public class GasPumpGUI
extends Object

A graphical user interface to simulate a gas pump. It is designed to be used with three instances of a student-written class that implements IMeter.

Please see the package description for a more in-depth discussion of using this class.

Author:
Byron Weber Becker

Constructor Summary
GasPumpGUI(IMeter lowOctane, IMeter medOctane, IMeter highOctane, String volumeUnit)
          Create a new graphical user interface for a gas pump.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GasPumpGUI

public GasPumpGUI(IMeter lowOctane,
                  IMeter medOctane,
                  IMeter highOctane,
                  String volumeUnit)
Create a new graphical user interface for a gas pump. A gas pump requires three gas meters for three different octane levels: low, medium, and high.

Parameters:
lowOctane - the meter for low octane gas (regular or bronze)
medOctane - the meter for medium octane gas (premium or silver)
highOctane - the meter for high octane gas (supreme or gold)
volumeUnit - the unit of volume, such as Liter or Gallon