A B C D E F G H I M N P R S T

A

Airport - interface reservations.Airport.
A class implementing the Airport interface will provide these pieces of identifying information.

B

BUSINESS_CLASS - Static variable in class reservations.SeatCategory
Uniquely identifies a Business Class SeatCategory

C

compareTo(Object) - Method in class reservations.Time
Compares this Time object with the specified object.

D

DateGenerator - class reservations.DateGenerator.
A helper class to generate Dates in the future.
DateGenerator() - Constructor for class reservations.DateGenerator
 
DateGenerator(Date) - Constructor for class reservations.DateGenerator
 

E

ECONOMY_CLASS - Static variable in class reservations.SeatCategory
Uniquely identifies an Economy Class SeatCategory
equals(Object) - Method in class reservations.Time
Compares this time to the specified object.
equals(Object) - Method in interface reservations.Itinerary
The result is true if and only if the argument is not null and is an Itinerary object that represents the same Itinerary as this Itinerary object.

F

FIRST_CLASS - Static variable in class reservations.SeatCategory
Uniquely identifies a First Class SeatCategory
firstChoice() - Method in interface reservations.ReservationRequest
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.
Flight - interface reservations.Flight.
This interface describes the pieces of information (in the form of object references) that a airline flight should be able to return.
FlightTest - class reservations.FlightTest.
Provides a test of an implementation of a class that implements the Flight interface provided the implementation class has a constructor that takes an Itinerary object, as required.
FlightTest(String) - Constructor for class reservations.FlightTest
Constructs a new FlighTest object to test the named class implementing the Flight interface.
future(int, int, int) - Method in class reservations.DateGenerator
returns a Date for some random time in the future as determined by the input parameters.

G

genTime(Date, boolean) - Static method in class reservations.DateGenerator
Return a Date for a random number of hours (1 to 6) and minutes either before or after the given Date.
getCategory() - Method in interface reservations.Seat
This method should return an indication of the seat category: first-class, economy, etc.
getCity() - Method in interface reservations.Airport
Returms the name of the city that this airport is associated with.
getCode() - Method in interface reservations.Airport
Returns an identifying code that uniquely identifies a particular Airport.
getDepartureTime() - Method in interface reservations.Itinerary
Returns the itinerary departure time, null in the case of reservation request itineraries
getDestinationAirport() - Method in interface reservations.Itinerary
Returns the destination airport
getEarliestStart() - Method in interface reservations.ReservationRequest
Returns a date representing the earliest that this person is willing to fly.
getFlight() - Method in interface reservations.Reservation
Should return the Flight that this reservation has been assigned to.
getItinerary() - Method in interface reservations.ReservationRequest
Returms a reference to the Itinerary that this passenger wants fly.
getItinerary() - Method in interface reservations.Flight
Should return the Itinerary (starting and destination airports) that the Flight will connect.
getLatestStart() - Method in interface reservations.ReservationRequest
Returns a date representing the latest that this person is willing to fly.
getLeavingTime() - Method in interface reservations.Flight
Should return the date/time that a flight will take off.
getPassenger() - Method in interface reservations.ReservationRequest
Returns a reference to the passenger who is making this request.
getPassenger() - Method in interface reservations.Reservation
Should return a reference to the Passenger object this reservation was issued to.
getPrice() - Method in interface reservations.Seat
This method should return an object that encapsulates the price information for the passenger willbe billed for this seat.
getReservationIterator() - Method in interface reservations.Flight
Should return an iterator for a collection of Reservation objects that represent the passengers who have reserved seat son this flight.
getSeat() - Method in interface reservations.Reservation
Should return the seat assignment for this reservation.
getSeatCategory() - Method in interface reservations.Reservation
Should return the SeatCategory that this reservation is for.
getSeatNumber() - Method in interface reservations.Seat
This method should uniquely identify the seat that has been assigned to a passenger on a flight.
getSeatPrice() - Method in interface reservations.Reservation
Should return the Price that the passenger will pay for a seat on this flight.
getStartingAirport() - Method in interface reservations.Itinerary
Returns the starting airport
getState() - Method in interface reservations.Airport
Returms the name of the sate/province that this airport is associated with.

H

hashCode() - Method in class reservations.Time
Returns a hash code for this Time.
hashCode() - Method in interface reservations.Itinerary
Returns a hashcode for this Itinerary such that two Itinerary objects with the same starting and destination airports will have the same hashcode value.
hasNext() - Method in class reservations.ReservationRequestGenerator
Returns true if there are more ReservationRequests.

I

iterator() - Method in class reservations.ReservationRequestGenerator
Returns an Iterator over the current set of ReservationRequests.
iterator() - Method in class reservations.ItineraryReader
Returns an Iterator for the set of Itineraries being read by the ItineraryReader.
Itinerary - interface reservations.Itinerary.
This interface is used to represent airline flight starting and destination cities and departure times.
ItineraryException - exception reservations.ItineraryException.
Thrown when Itinerary pre-conditions have not been met.
ItineraryException() - Constructor for class reservations.ItineraryException
Constructs an ItineraryException with no message string
ItineraryException(String) - Constructor for class reservations.ItineraryException
Constructs an ItineraryException with the specified message string.
ItineraryException(String, Exception) - Constructor for class reservations.ItineraryException
Constructs an ItineraryException with the specified message string and encapsulating some other Exception.
ItineraryReader - class reservations.ItineraryReader.
A helper class designed to read a file of flight destinations
ItineraryReader() - Constructor for class reservations.ItineraryReader
Creates an object that reads Itinerary information from the default input source.
ItineraryReader(String) - Constructor for class reservations.ItineraryReader
Creates an object that reads Itinerary information from the named file.
ItineraryReader(URL) - Constructor for class reservations.ItineraryReader
Creates an object that reads Itinerary information from the indicated URL.
ItineraryTest - class reservations.ItineraryTest.
Provides a test of the ItineraryReader and a way to dump the contents of the destinations file in the forms of Itinerary objects.
ItineraryTest() - Constructor for class reservations.ItineraryTest
 
ItineraryTest(String) - Constructor for class reservations.ItineraryTest
 

M

main(String[]) - Static method in class reservations.ReservationRequestTest
Tests the creation of ReservationRequests (and Itineraries) and displays the contents of some sample ReservationRequest objects.
main(String[]) - Static method in class reservations.ItineraryTest
Tests the creation of Itinerary objects and displays the contents of Itinerary objects created from a set of destinations.
main(String[]) - Static method in class reservations.FlightTest
Tests the creation of objects implementing the Flight interface.

N

next() - Method in class reservations.ReservationRequestGenerator
Returns the next ReservationRequest
nextItinerary() - Method in class reservations.ItineraryReader
Returns the next Itinerary object from the input source.
nextRequest() - Method in class reservations.ReservationRequestGenerator
Returns the next ReservationRequest object.
now() - Method in class reservations.DateGenerator
Returns a new Date object representing the current time that this DataGenerator currently uses.

P

Passenger - interface reservations.Passenger.
This interface defines all that you are required to provide for a person with a reservation on a flight.

R

reader - Variable in class reservations.ItineraryTest
 
readItineraries(boolean) - Method in class reservations.ItineraryTest
 
register(Flight) - Method in interface reservations.Itinerary
Is used for a Flight object to register itself with an Itinerary it corresponds to.
remove() - Method in class reservations.ReservationRequestGenerator
 
Reservation - interface reservations.Reservation.
This interface describes the pieces of information (in the form of object references) that a airline flight reservation should be able to return.
ReservationException - exception reservations.ReservationException.
ReservationException is the superclass of those exceptions that are related to the reservation system.
ReservationException() - Constructor for class reservations.ReservationException
Constructs an ReservationException with no message string.
ReservationException(String) - Constructor for class reservations.ReservationException
Constructs an ReservationException with the specified message string.
ReservationException(String, Exception) - Constructor for class reservations.ReservationException
Constructs an ReservationException with the specified message string and encapsulating some other Exception.
ReservationRequest - interface reservations.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.
ReservationRequestException - exception reservations.ReservationRequestException.
Thrown to indicate a problem with ReservationRequests.
ReservationRequestException() - Constructor for class reservations.ReservationRequestException
Constructs a ReservationRequestException with no message string.
ReservationRequestException(String) - Constructor for class reservations.ReservationRequestException
Constructs a ReservationRequestException with the specified message string.
ReservationRequestException(String, Exception) - Constructor for class reservations.ReservationRequestException
Constructs a ReservationRequestException with the specified message string and encapsulating some other Exception.
ReservationRequestGenerator - class reservations.ReservationRequestGenerator.
A helper class to generate ReservationRequest objects that can be used with Flights and Itineraries.
ReservationRequestGenerator() - Constructor for class reservations.ReservationRequestGenerator
Create an object that generates ReservationRequests using the default set of built-in names for input.
ReservationRequestGenerator(String) - Constructor for class reservations.ReservationRequestGenerator
Create an object that generates ReservationRequests using the specified file as the source of passenger names.
ReservationRequestGenerator(URL) - Constructor for class reservations.ReservationRequestGenerator
Create an object that generates ReservationRequests using the indicated URL as the source of names.
ReservationRequestTest - class reservations.ReservationRequestTest.
Provides a test of the ReservationRequestGenerator.
reservations - package reservations
 

S

Seat - interface reservations.Seat.
This optional interface (optional in the sense that if you choose to implement seat assignments in your system, your implementation of seat assignments should fully implement this interface to return meaningful results.
SeatCategory - class reservations.SeatCategory.
A simple typesafe enumeration of seat categories.
SeatPrice - interface reservations.SeatPrice.
This is a marker/placeholder interface for an object type that encapsulates some seat cost information.

T

test() - Method in class reservations.FlightTest
Invokes the testing mechanism to call the Flight implemntation constructor for each of a series of Itinerary objects.
Time - class reservations.Time.
A utility class to encapsulate time of day comparisons.
Time(Date) - Constructor for class reservations.Time
Constructs a new Time object using the hour, minute, and second values of the specified Date
toString() - Method in class reservations.Time
 
toString() - Method in interface reservations.SeatPrice
Returns a string indicating the cost of a particular seat on a flight.
toString() - Method in class reservations.SeatCategory
 
toString() - Method in class reservations.ReservationException
Returns the exception message text, if any as well that for the wrapped exception, if one was specified on construction.
toString() - Method in interface reservations.Passenger
Return the passenger's name and any other identifying information.

A B C D E F G H I M N P R S T