|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectCustomer
public class Customer
| Constructor Summary | |
|---|---|
Customer(int numItems)
Creates a Customer object with the specified initial number of items. |
|
| Method Summary | |
|---|---|
int |
getArrivalTime()
Gets the arrival time. |
int |
getDepartureTime()
|
int |
getInitialItemCount()
|
int |
getItemCount()
|
void |
removeItem()
Removes one item from the customer's basket. |
void |
setArrivalTime(int arrivalTime)
Sets the arrival time; your code will call this on Customer instances returned by the CustomerGenerator. |
void |
setDepartureTime(int departureTime)
Sets the departure time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Customer(int numItems)
numItems - | Method Detail |
|---|
public int getArrivalTime()
public void setArrivalTime(int arrivalTime)
arrivalTime - The arrivalTime to set.public int getItemCount()
public int getInitialItemCount()
public int getDepartureTime()
public void setDepartureTime(int departureTime)
departureTime - The departureTime to set.public void removeItem()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||