taxisrus.implementation.CabConsole
Class Meter

java.lang.Object
  |
  +--taxisrus.implementation.CabConsole.Meter

public class Meter
extends Object

Simulates the meter on the cabConsole

Author:
The Masters

Constructor Summary
Meter()
          Creates a Meter
 
Method Summary
 void ClearCustomerTotal()
          Clears the customer total to $0.00
 void ClearShiftTotal()
          Clears the total shift total to $0.00
 double getCustomerMileage()
          Get Mileage
 double getCustomerTotal()
          Get customer total
 double getShiftTotal()
          Get Total Amount for the shift
 void startMeter()
          Start meter
 void stopMeter()
          Stops the meter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Meter

public Meter()
Creates a Meter
Method Detail

ClearCustomerTotal

public void ClearCustomerTotal()
Clears the customer total to $0.00

ClearShiftTotal

public void ClearShiftTotal()
Clears the total shift total to $0.00

getCustomerTotal

public double getCustomerTotal()
Get customer total
Returns:
double total amount due

getCustomerMileage

public double getCustomerMileage()
Get Mileage
Returns:
number of miles customer has accumulated for the ride

getShiftTotal

public double getShiftTotal()
Get Total Amount for the shift
Returns:
the dollar amount accumulated during the cabbies shift

startMeter

public void startMeter()
Start meter

stopMeter

public void stopMeter()
Stops the meter


API documentation for build 958