Class GateHelper

java.lang.Object
org.deltava.beans.schedule.GateHelper

public class GateHelper extends Object
A helper class to handle gate assignments.
Since:
10.3
Version:
11.1
Author:
Luke
  • Constructor Details

    • GateHelper

      public GateHelper(RoutePair rp, Airline a, int max, boolean doShuffle)
      Creates the bean.
      Parameters:
      rp - the RoutePair
      a - the Airline
      max - the maximum number of gates returned
      doShuffle - TRUE to randomize gate choices, otherwise FALSE
    • GateHelper

      public GateHelper(Flight f, int max, boolean doShuffle)
      Creates the bean.
      Parameters:
      f - the Flight
      max - the maximum number of gates returned
      doShuffle - TRUE to randomize gate choices, otherwise FALSE
  • Method Details

    • addDepartureGates

      public void addDepartureGates(Collection<Gate> gates, GateUsage gu)
      Adds gates at the departure Airport.
      Parameters:
      gates - a Collection of Gates
      gu - a GateUsage bean
    • addArrivalGates

      public void addArrivalGates(Collection<Gate> gates, GateUsage gu)
      Adds gates at the arrival Airport.
      Parameters:
      gates - a Collection of Gates
      gu - a GateUsage bean
    • clear

      public void clear()
      Clears the raw gate sets.
    • getDepartureZone

      public GateZone getDepartureZone()
      Returns the departure Gate zone.
      Returns:
      the GateZone
    • getArrivalZone

      public GateZone getArrivalZone()
      Returns the arrival Gate zone.
      Returns:
      the GateZone
    • getDepartureGates

      public List<Gate> getDepartureGates()
      Returns departure Gates for this route.
      Returns:
      a List of Gates, sorted by popularity
    • getArrivalGates

      public List<Gate> getArrivalGates()
      Returns arrival Gates for this route.
      Returns:
      a List of Gates, sorted by popularity