|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is used to represent airline flight starting and destination cities and departure times. It is also used in the case of Reservation Requests to represent a passenger's desired starting and destination airports.
| Method Summary | |
boolean |
equals(java.lang.Object o)
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. |
java.util.Date |
getDepartureTime()
Returns the itinerary departure time, null in the case of reservation request itineraries |
Airport |
getDestinationAirport()
Returns the destination airport |
Airport |
getStartingAirport()
Returns the starting airport |
int |
hashCode()
Returns a hashcode for this Itinerary such that two Itinerary objects with the same starting and destination airports will have the same hashcode value. |
void |
register(Flight f)
Is used for a Flight object to register itself with an Itinerary it corresponds to. |
| Method Detail |
public Airport getStartingAirport()
public Airport getDestinationAirport()
public java.util.Date getDepartureTime()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void register(Flight f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||