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
_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 TypeMethodDescriptionvoidadd(int flights, int acarsFlights) Adds flights.intcompareTo(RouteStats rs2) intReturns the number of ACARS flight legs.Returns the last flight date for this route pair.voidsetLastFlight(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, 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
-
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:
compareToin interfaceComparable<RouteStats>
-