Class RouteStats
java.lang.Object
org.deltava.beans.schedule.AbstractRoute
org.deltava.beans.stats.RouteStats
- All Implemented Interfaces:
Comparable<RouteStats>
,GeoLocation
,MapEntry
,RoutePair
A bean to store route frequency data.
- Since:
- 4.1
- Version:
- 11.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
add
(int flights, int acarsFlights) Adds flights.int
compareTo
(RouteStats rs2) int
Returns the number of ACARS flight legs.Returns the last flight date for this route pair.void
setLastFlight
(Instant dt) Updates the date/time of the last flight.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
-
RouteStats
-
-
Method Details
-
add
public void add(int flights, int acarsFlights) Adds flights.- Parameters:
flights
- the total number of flightsacarsFlights
- the number of ACARS flights
-
setLastFlight
Updates the date/time of the last flight.- Parameters:
dt
- the date/time of the latest flight, or null if none
-
getACARSFlights
public int getACARSFlights()Returns the number of ACARS flight legs.- Returns:
- the number of ACARS legs
-
getLastFlight
Returns the last flight date for this route pair.- Returns:
- the last flight date/time, or null if none
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RouteStats>
-