/*
Car Wash Simulation Project: Car Class
The Car Wash Simulation Project is described in
Car
Wash Project Description.
Authors: Autumn C. Spaulding and Alyce Brady,
based on a description by
Todd Ollendyke.
Date: 13 July 2000
Modified: 29 October 2002
Separated class templates into separate files.
Copyright 2000, 2002 Autumn C. Spaulding and Alyce Brady
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
This class represents a car in the Car Wash program. The primary
responsibility of a car (at least at this time) is to keep track
of its arrival time so that the simulation can determine how long
the car has to wait before being washed.
*/
public class Car
{
int myArrivalTime;
/** Construct a car.
@param arrivalTime time when car arrived at car wash.
*/
public Car (int arrivalTime)
{
myArrivalTime = arrivalTime;
}
/** Report the arrival time for this car at the car wash. */
public int arrivalTime ()
{
return myArrivalTime;
}
} // end Car class