Class RunwayGateUsage
java.lang.Object
org.deltava.beans.stats.RunwayGateUsage
- All Implemented Interfaces:
Serializable, RoutePair, Cacheable
- Direct Known Subclasses:
GateUsage, RunwayUsage
-
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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 class Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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
The usage totals.
-
-
Constructor Details
-
RunwayGateUsage
Creates the bean.- Parameters:
rp- the RoutePairisDeparture- TRUE if departure gates/runways, otherwise FALSE
-
-
Method Details
-
getAirportD
Description copied from interface:RoutePairReturns the departure Airport.- Specified by:
getAirportDin interfaceRoutePair- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePairReturns the arrival Airport.- Specified by:
getAirportAin interfaceRoutePair- Returns:
- the arrival Airport
-
size
public int size()Returns the number of Runways/Gates with usage data.- Returns:
- the number of Runways/Gates
-
getIsDeparture
public boolean getIsDeparture()Returns whether these are departure Runway/Gate statistics.- Returns:
- TRUE if departure statistics, otherwise FALSE
-
add
-
getTotalUsage
Returns the usage count for a particular Gate/Runway.- Parameters:
gateName- the Runway/Gate name- Returns:
- the usage count, or zero if unknown
-
getTotal
public int getTotal()Returns the total usage across all gates.- Returns:
- the total usage count
-
clear
public void clear()Clears usage totals. -
cacheKey
-
hashCode
-