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.int
Returns the number of flights in this route pair.Returns the text to display in this marker's infobox if displayed in a Google Map.double
Returns the latitude of this location.double
Returns the longitude of this location.Collection
<? extends GeoLocation> Returns the departure and arrival airports.int
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
-
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:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in interfaceRoutePair
- Returns:
- the arrival Airport
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
-
getPoints
Returns the departure and arrival airports.- Returns:
- a Collection of GeoLocations
-
getFlights
public int getFlights()Returns the number of flights in this route pair.- Returns:
- the number of flights
-
getInfoBox
Description copied from interface:MapEntry
Returns the text to display in this marker's infobox if displayed in a Google Map.- Specified by:
getInfoBox
in interfaceMapEntry
- Returns:
- the infobox HTML text, or null if no infobox to be displayed
-
hashCode
-
toString
-