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

A

addFlight(Flight) - Method in class Route
 
Airport - Class in <Unnamed>
A simple class to store the name and code for an airport.
Airport(String, String) - Constructor for class Airport
 
airports - Variable in class FlytrapAirlines
A table of Airports.
arrives - Variable in class Flight
arrival airport
arrives() - Method in class Flight
 
arrives - Variable in class Route
arrival airport
arrives() - Method in class Route
 
arriveTime - Variable in class Flight
arrival time (in 24 hour time as 4 digits, ie 1530 for 130pm)
arriveTime() - Method in class Flight
 

C

code - Variable in class Airport
three letter airport code
code() - Method in class Airport
 
compareTo(Airport) - Method in class Airport
 
compareTo(Flight) - Method in class Flight
 

D

departs - Variable in class Flight
departure airport
departs() - Method in class Flight
 
departs - Variable in class Route
departure airport
departs() - Method in class Route
 
departTime - Variable in class Flight
departure time (in 24 hour time as 4 digits, ie 1530 for 330pm)
departTime() - Method in class Flight
 
dijkstra(Graph<Airport, Route>, Airport) - Method in class FlytrapAirlines
An implementation of dijkstra's algorithm to compute route distances.
dijkstraEarliestArrival(Graph<Airport, Route>, Airport, int) - Method in class FlytrapAirlines
An implementation of Dijkstra's algorithm to compute earliest-arriving itineraries.
distance - Variable in class Route
distance in miles between airports
distance() - Method in class Route
 
duration - Variable in class Flight
duration of the flight (in minutes)
duration() - Method in class Flight
 

E

equals(Object) - Method in class Airport
 

F

Flight - Class in <Unnamed>
Information about one flight on the airline.
Flight(int, Airport, Airport, int, int, int) - Constructor for class Flight
 
flights - Variable in class Route
list of flights, ordered by departure time
flights() - Method in class Route
 
FlytrapAirlines - Class in <Unnamed>
The main class for FlytrapAirlines.
FlytrapAirlines(String) - Constructor for class FlytrapAirlines
 

G

getAirport(String) - Method in class FlytrapAirlines
Helper method to convert an airport code to a Airport object.

H

hashCode() - Method in class Airport
 

L

loadFiles(String) - Method in class FlytrapAirlines
Reads in the airports.txt, dists.txt.

M

main(String[]) - Static method in class FlytrapAirlines
 

N

name - Variable in class Airport
full name of airport
name() - Method in class Airport
 
number - Variable in class Flight
flight number

P

printAirports() - Method in class FlytrapAirlines
Handles the "airports" command by printing an alphabetic list of airports serviced by FTA.
printDistance(Airport, Airport) - Method in class FlytrapAirlines
Handles the "distance" command.
printFlights(Airport, Airport) - Method in class FlytrapAirlines
Handles the "flights" command.
printHelp() - Method in class FlytrapAirlines
Handles the "help" command by printing a help message.
printItinerary(Map<Airport, ComparableAssociation<Integer, Flight>>, Airport) - Method in class FlytrapAirlines
 
printShortestPath(Map<Airport, ComparableAssociation<Integer, Edge<Airport, Route>>>, Airport) - Method in class FlytrapAirlines
 
printTrip(Airport, Airport, int) - Method in class FlytrapAirlines
Handles the "trip" command.
processCommands() - Method in class FlytrapAirlines
Reads in commands and processes them until "quit" is seen.

R

readAirports(String) - Method in class FlytrapAirlines
Helper method to read in airport data file.
readDistances(String) - Method in class FlytrapAirlines
Helper method to read in the distances between airports serviced by flights.
readFlights(String) - Method in class FlytrapAirlines
Helper method to read in flight info.
Route - Class in <Unnamed>
A Route keeps track of information about a specific connection from one Airport to another.
Route(Airport, Airport, int) - Constructor for class Route
 

S

schedule - Variable in class FlytrapAirlines
The schedule for FTA.

T

toString() - Method in class Airport
 
toString() - Method in class Flight
 
toString() - Method in class Route
 

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