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 org.deltava.beans.schedule.RoutePair
RoutePair.RoutePairImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Number of years back to aggregate runway usage.Fields inherited from class org.deltava.beans.stats.RunwayGateUsage
_usage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds usage count for a particular Runway.apply
(Collection<Runway> rwys) Applies usage data to multiple Runways.void
apply
(RunwayMapping rm) Applys runway remapping to usage totals.clone()
Deep clones the object.toString()
Methods inherited from class org.deltava.beans.stats.RunwayGateUsage
add, cacheKey, clear, getAirportA, getAirportD, getIsDeparture, getTotal, getTotalUsage, hashCode, size
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.schedule.RoutePair
createKey, getAirports, getDistance, getFlightType, includes, isPopulated, matches
-
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
-