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 org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl -
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 java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches, midPoint
-
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
-