Class GateUsage

All Implemented Interfaces:
Serializable, RoutePair, Cacheable

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

    • GATE_USAGE_YEARS

      public static final int GATE_USAGE_YEARS
      Number of years back to aggregate gate/airline usage.
      See Also:
  • Constructor Details

    • GateUsage

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

    • getAirlines

      public Collection<Airline> getAirlines()
      Returns airlines with usage.
      Returns:
      a Collection of Airline codes
    • hasAriline

      public boolean hasAriline(String airlineCode)
      Returns whether there is any Runway/Gate date for a particular Airline.
      Parameters:
      airlineCode - the Airline code
      Returns:
      TRUE if at least one Runway/Gate has been used with this Airline, otherwise FALSE
    • clone

      public GateUsage clone()
      Deep clones the object.
      Overrides:
      clone in class Object
      Returns:
      a cloned RunwayGateUsage
    • filter

      public GateUsage filter(Airline a)
      Creates a RunwayGateUsage object for a single Airline.
      Parameters:
      a - the Airline
      Returns:
      a new RunwayGateUsage bean with statistics for that Airline
    • toString

      public String toString()
      Overrides:
      toString in class Object