|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--NewReservation
This class models a hotel reesrvation system
Field Summary | |
static java.lang.String[] |
occupancy
occupancy is an array that indicates the occupant of each room. |
Constructor Summary | |
NewReservation()
Creates a list of rooms and make them available (by setting them to null). |
Method Summary | |
boolean |
cancel(java.lang.String customer)
checks out a customer and marks the room as empty |
boolean |
reserve(java.lang.String customer)
Adds a new customer to the hotel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String[] occupancy
Constructor Detail |
public NewReservation()
Method Detail |
public boolean reserve(java.lang.String customer)
customer
- is the name of the customer to be added.
public boolean cancel(java.lang.String customer)
customer
- is the name of the customer checking out
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |