|
||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Flight in airline |
---|
Fields in airline with type parameters of type Flight | |
---|---|
private ArrayList<Flight> |
Reservation.legs
List of legs that are part of this itinerary |
private HashMap<String,Flight> |
AirlineSystem.FlightDB.map
We maintain underlying collection as a HashMap |
Methods in airline that return Flight | |
---|---|
Flight |
Flight.Ticket.getFlight()
Returns a reference to the associated Flight . |
Flight |
AirlineSystem.getFlight(String flightCode)
Returns the Flight with the given flight code (e.g., "UA200"). |
Flight |
AirlineSystem.FlightDB.getFlight(String code)
Returns the Flight associated with the given code. |
Flight |
Reservation.getLeg(int index)
Returns the Flight with the given index. |
Methods in airline that return types with arguments of type Flight | |
---|---|
Iterator<Flight> |
AirlineSystem.getAllFlights()
Returns an array of all flights currently in the system. |
Iterator<Flight> |
Reservation.getAllLegs()
Returns an Iterator reporting all flights for this reservation. |
Iterator<Flight> |
AirlineSystem.FlightDB.iterator()
Returns an iterator of Flight instances. |
Methods in airline with parameters of type Flight | |
---|---|
void |
AirlineSystem.FlightDB.add(Flight f)
Adds a Flight to the system. |
protected boolean |
Reservation.addFlight(Flight f)
Attempts to add a flight as the next leg of the reservation. |
void |
AirlineSystem.addFlight(Flight f)
Adds a Flight to the system. |
boolean |
ProvisionalReservation.addFlight(Flight f)
|
|
||||||||
PREV NEXT | FRAMES NO FRAMES |