Class RunwayUsage

java.lang.Object
org.deltava.beans.stats.RunwayGateUsage
org.deltava.beans.stats.RunwayUsage
All Implemented Interfaces:
Serializable, RoutePair, Cacheable

public class RunwayUsage extends RunwayGateUsage
A bean to store Runway/Gate usage statistics.
Since:
11.1
Version:
11.1
Author:
Luke
See Also:
  • Field Details

    • USAGE_YEARS

      public static final int USAGE_YEARS
      Number of years back to aggregate runway usage.
      See Also:
  • Constructor Details

    • RunwayUsage

      public RunwayUsage(RoutePair rp, boolean isDeparture)
      Creates the bean.
      Parameters:
      rp - the RoutePair
      isDeparture - TRUE if departure gates/runways, otherwise FALSE
  • Method Details

    • add

      public void add(String name, int totalUsage)
      Adds usage count for a particular Runway.
      Parameters:
      name - the Runway/Gate name
      totalUsage - the total usage count
    • apply

      public void apply(RunwayMapping rm)
      Applys runway remapping to usage totals. Totals for the old and new codes will be added and applied to the new runway code.
      Parameters:
      rm - a RunwayMapping bean
    • apply

      public List<RunwayUse> apply(Collection<Runway> rwys)
      Applies usage data to multiple Runways.
      Parameters:
      rwys - a Collection of Runway beans.
      Returns:
      a List of RunwayUse beans
    • clone

      public RunwayUsage clone()
      Deep clones the object.
      Overrides:
      clone in class Object
      Returns:
      a cloned RunwayUsage
    • toString

      public String toString()
      Overrides:
      toString in class Object