Class GateUsage
java.lang.Object
org.deltava.beans.stats.RunwayGateUsage
org.deltava.beans.stats.GateUsage
- All Implemented Interfaces:
Serializable, RoutePair, Cacheable
A bean to store Runway/Gate usage statistics.
- Since:
- 10.0
- 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 gate/airline usage.Fields inherited from class RunwayGateUsage
_usage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deep clones the object.Creates a RunwayGateUsage object for a single Airline.Returns airlines with usage.booleanhasAriline(String airlineCode) Returns whether there is any Runway/Gate date for a particular Airline.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
-
GATE_USAGE_YEARS
public static final int GATE_USAGE_YEARSNumber of years back to aggregate gate/airline usage.- See Also:
-
-
Constructor Details
-
GateUsage
Creates the bean.- Parameters:
rp- the RoutePairisDeparture- TRUE if departure gates/runways, otherwise FALSE
-
-
Method Details
-
getAirlines
Returns airlines with usage.- Returns:
- a Collection of Airline codes
-
hasAriline
Returns whether there is any Runway/Gate date for a particular Airline.- Parameters:
airlineCode- the Airline code- Returns:
- TRUE if at least one Runway/Gate has been used with this Airline, otherwise FALSE
-
clone
-
filter
-
toString
-