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 TypeMethodDescriptionvoid
Adds usage count for a particular Gate/Runway and Airline.cacheKey()
Returns the cache key for this object.void
clear()
Clears usage totals.Returns the arrival Airport.Returns the departure Airport.boolean
Returns whether these are departure Runway/Gate statistics.int
getTotal()
Returns the total usage across all gates.int
getTotalUsage
(String gateName) Returns the usage count for a particular Gate/Runway.int
hashCode()
int
size()
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, wait
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
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:RoutePair
Returns the departure Airport.- Specified by:
getAirportD
in interfaceRoutePair
- Returns:
- the departure Airport
-
getAirportA
Description copied from interface:RoutePair
Returns the arrival Airport.- Specified by:
getAirportA
in 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
-