reservations
Interface ReservationRequest


public interface ReservationRequest

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.

See Also:
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

getPassenger

public Passenger getPassenger()
Returns a reference to the passenger who is making this request.


getItinerary

public Itinerary getItinerary()
Returms a reference to the Itinerary that this passenger wants fly.


getEarliestStart

public java.util.Date getEarliestStart()
Returns a date representing the earliest that this person is willing to fly.


getLatestStart

public java.util.Date getLatestStart()
Returns a date representing the latest that this person is willing to fly.


firstChoice

public 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.