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
_frequency
Fields 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 TypeMethodDescriptionvoid
Adds a flight / airline between these two Airports.int
compareTo
(ImportRoute ir2) int
Returns the priority score.Returns the source of the routes.boolean
void
setPriority
(int p) Updates the priority score.Methods inherited from class org.deltava.beans.schedule.AbstractRoute
getAirportA, getAirportD, getFlights, getInfoBox, getLatitude, getLongitude, getPoints, hashCode, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
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:
compareTo
in interfaceComparable<ImportRoute>
-