|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the information that your part of the airline reservation system will be provided that simulates passengers attempting to book seats on your flights.
Note there are no get earliest or latest arrival methods. For this project, you don't need to do any complicated scheduling, just pick a flight that falls anywhere within the two Dates returned by thegetEarliestStart and getlatestStart methods. Look at the JavaDoc for java.util.Date for useful Date comparison methods.
Date| Method Summary | |
SeatCategory |
firstChoice()
Returns a seat category, e.g., FirstClass, Economy, BusinessClass that this passenger requests to fly (which will not necessarily be honored by the reservation system. |
java.util.Date |
getEarliestStart()
Returns a date representing the earliest that this person is willing to fly. |
Itinerary |
getItinerary()
Returms a reference to the Itinerary that this passenger wants fly. |
java.util.Date |
getLatestStart()
Returns a date representing the latest that this person is willing to fly. |
Passenger |
getPassenger()
Returns a reference to the passenger who is making this request. |
| Method Detail |
public Passenger getPassenger()
public Itinerary getItinerary()
public java.util.Date getEarliestStart()
public java.util.Date getLatestStart()
public SeatCategory firstChoice()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||