Class ImportRoute
java.lang.Object
org.deltava.beans.schedule.AbstractRoute
org.deltava.beans.schedule.ImportRoute
- All Implemented Interfaces:
Comparable<ImportRoute>,GeoLocation,MapEntry,RoutePair
A bean to track flight routes within a Flight Schedule import.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
Field Summary
Fields inherited from class org.deltava.beans.schedule.AbstractRoute
_frequencyFields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a flight / airline between these two Airports.intcompareTo(ImportRoute ir2) intReturns the priority score.Returns the source of the routes.booleanvoidsetPriority(int p) Updates the priority score.Methods inherited from class org.deltava.beans.schedule.AbstractRoute
getAirportA, getAirportD, getFlights, getInfoBox, getLatitude, getLongitude, hashCode, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceToMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
Constructor Details
-
ImportRoute
Creates the bean.- Parameters:
src- the ScheduleSourceaD- the departure AirportaA- the arrival Airport
-
-
Method Details
-
getSource
-
getPriority
public int getPriority()Returns the priority score.- Returns:
- the score
-
hasAirline
-
addEntry
Adds a flight / airline between these two Airports.- Parameters:
se- a ScheduleEntry
-
setPriority
public void setPriority(int p) Updates the priority score.- Parameters:
p- the score
-
compareTo
- Specified by:
compareToin interfaceComparable<ImportRoute>
-