Skip navigation links
A C D E F G I L M N O P R S T 

G

getAirport(String) - Method in class AirportManager
Returns the airport with specified code if it exists
getAirportClosestTo(String) - Method in class AirportManager
Returns the Airport closest in distance (miles) to the airport specified by the input code
getAirportClosestTo(List<Airport>, String) - Method in class AirportManager
This is a helper method I wrote.
getAirportClosestTo2(String) - Method in class AirportManager
Returns the Airport closest in distance (miles) to the airport specified by the input code, different implementation of getAirportClosestTo
getAirportCodes() - Method in class AirportManager
Returns a sorted list of airport codes.
getAirportManager(File) - Static method in class AirportManagerTest
 
getAirportManager() - Static method in class FlightManagerTest
Creates an AirportManager from the medium file (89 airports)
getAirportManager(File) - Static method in class TripTest
 
getAirportMap(File) - Static method in class AirportLoader
Returns a map of Airport objects constructed from reading the file specified by the argument.
getAirports() - Method in class AirportManager
Returns a list of all airports
getAirportsByCity(String) - Method in class AirportManager
Returns a list of the Airports whose “City” begins with "city", i.e.
getAirportsByCityState(String, String) - Method in class AirportManager
Returns a list of the Airports whose “City” is city and “State” is state.
getAirportsClosestTo(String, int) - Method in class AirportManager
Returns a list of the num Airports that are closest in distance (miles) to the Airport with .
getAirportsSortedBy(String) - Method in class AirportManager
Returns a list of Airports that are sorted according to sortType.
getAirportsWithin(String, double) - Method in class AirportManager
Returns a list of Airports within a distance, withinDist, of the airport specified by its code.
getAirportsWithin(double, double, double) - Method in class AirportManager
Returns a list of Airports within a distance, withinDist, of the input latitude & longitude.
getAirportsWithin(String, String, double) - Method in class AirportManager
Returns a list of Airports which are within withinDist of both the Airports that correspond to code1 and code2.
getCity() - Method in class Airport
 
getCode() - Method in class Airport
 
getCost() - Method in class Flight
 
getCost() - Method in class Trip
Returns the total cost of trip across all legs.
getDate() - Method in class Flight
 
getDate() - Method in class Trip
Returns the date of the trip.
getDestination() - Method in class Flight
 
getDestination() - Method in class Trip
Returns the airport where trip ends.
getDistance(double, double, double, double) - Static method in class DistanceCalculator
Returns the distance between two pairs of latitude & longitude
getDistance() - Method in class Flight
 
getDistance() - Method in class Trip
Returns the total distance of trip across all legs.
getDistanceBetween(String, String) - Method in class AirportManager
Returns the distance between two airports as specified by their codes.
getDistanceBetween(Airport, Airport) - Method in class AirportManager
Returns the distance between two airports.
getDistanceBetween() - Method in class Flight
Optional, a helper method I used in my solution.
getFlight(String) - Method in class FlightManager
Returns the Flight with the specified flight number
getFlights() - Method in class FlightManager
Returns a list of all flights.
getFlightsByOrigin(String) - Method in class FlightManager
Returns a list of Flights that originate at originCode (on any date).
getFlightsByOrigin(String, LocalDate) - Method in class FlightManager
Returns a list of Flights that originate at originCode on date, where date is a String.
getFlightsByOrigin(String, String) - Method in class FlightManager
Returns a list of Flights that originate at originCode on date, where date is a LocalDate
getFlightsByOriginAndDestination(String, String, LocalDate) - Method in class FlightManager
Returns a list of Flights between originCode and destinationCode that occur on date, where date is a LocalDate
getFlightsByOriginAndDestination(String, String, String) - Method in class FlightManager
Returns a list of Flights between originCode and destinationCode that occur on date, where date is a String
getHeader() - Method in class Trip
Optional, this is a helper method I wrote.
getLatitude() - Method in class Airport
 
getLegs() - Method in class Trip
Returns the list of legs.
getLegsMsg() - Method in class Trip
Optional, this is a helper method I wrote.
getLongitude() - Method in class Airport
 
getNumAirports() - Method in class AirportManager
Returns the number of airports.
getNumber() - Method in class Flight
 
getNumFlights() - Method in class FlightManager
Returns the number of flights.
getNumLegs() - Method in class Trip
Returns the number of legs.
getNWSNamedAirports() - Method in class AirportManager
Returns a list of the Airports whose code follows the National Weather Service (NWS) naming system.
getOrigin() - Method in class Flight
 
getOrigin() - Method in class Trip
Returns the airport where trip begins.
getState() - Method in class Airport
 
A C D E F G I L M N O P R S T 
Skip navigation links