Class AbstractRoute
java.lang.Object
org.deltava.beans.schedule.AbstractRoute
- All Implemented Interfaces:
GeoLocation,MapEntry,RoutePair
- Direct Known Subclasses:
ImportRoute,RouteStats,ScheduleRoute
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
Field Summary
FieldsFields 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 TypeMethodDescriptionReturns the arrival Airport.Returns the departure Airport.intReturns the number of flights in this route pair.Returns the text to display in this marker's infobox if displayed in a Google Map.doubleReturns the latitude of this location.doubleReturns the longitude of this location.inthashCode()toString()Methods 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
-
Field Details
-
_frequency
protected int _frequency
-
-
Constructor Details
-
AbstractRoute
Creates the route.- Parameters:
aD- the departure AirportaA- the arrival Airport- Throws:
NullPointerException- if aD or aA are null
-
-
Method Details
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getFlights
public int getFlights()Returns the number of flights in this route pair.- Returns:
- the number of flights
-
getInfoBox
Description copied from interface:MapEntryReturns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBoxin interfaceMapEntry- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-
hashCode
-
toString
-