Class RunwayUsage
java.lang.Object
org.deltava.beans.stats.RunwayGateUsage
org.deltava.beans.stats.RunwayUsage
- All Implemented Interfaces:
Serializable, RoutePair, Cacheable
A bean to store Runway/Gate usage statistics.
- Since:
- 11.1
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface RoutePair
RoutePair.RoutePairImplModifier and TypeInterfaceDescriptionstatic classHelper class when all you need is a naked RoutePair. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of years back to aggregate runway usage.Fields inherited from class RunwayGateUsage
_usage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds usage count for a particular Runway.apply(Collection<Runway> rwys) Applies usage data to multiple Runways.voidapply(RunwayMapping rm) Applys runway remapping to usage totals.clone()Deep clones the object.toString()Methods inherited from class RunwayGateUsage
add, cacheKey, clear, getAirportA, getAirportD, getIsDeparture, getTotal, getTotalUsage, hashCode, sizeModifier and TypeMethodDescriptionvoidAdds usage count for a particular Gate/Runway and Airline.cacheKey()Returns the cache key for this object.voidclear()Clears usage totals.Returns the arrival Airport.Returns the departure Airport.booleanReturns whether these are departure Runway/Gate statistics.intgetTotal()Returns the total usage across all gates.intgetTotalUsage(String gateName) Returns the usage count for a particular Gate/Runway.inthashCode()intsize()Returns the number of Runways/Gates with usage data.Methods inherited from interface RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPointModifier and TypeMethodDescriptiondefault StringReturns a key that describes the route pair.Returns the airports in this Route Pair.default intReturns the distance between the Airports.default FlightTypeReturns the flight type for customs/gate purposes.default booleanReturns whether this RoutePair includes a particular IATA or ICAO code.default booleanReturns whether both airports are populated.default booleanReturns whether this RoutePair matches a particular Route Pair.default GeoLocationmidPoint()Returns the midpoint between the two Airports on a Great Circle route.
-
Field Details
-
USAGE_YEARS
public static final int USAGE_YEARSNumber of years back to aggregate runway usage.- See Also:
-
-
Constructor Details
-
RunwayUsage
Creates the bean.- Parameters:
rp- the RoutePairisDeparture- TRUE if departure gates/runways, otherwise FALSE
-
-
Method Details
-
add
Adds usage count for a particular Runway.- Parameters:
name- the Runway/Gate nametotalUsage- the total usage count
-
apply
Applies usage data to multiple Runways.- Parameters:
rwys- a Collection of Runway beans.- Returns:
- a List of RunwayUse beans
-
clone
Deep clones the object. -
toString
-