Class FIR

All Implemented Interfaces:
Serializable, Comparable<Airspace>, GeoLocation, GeospaceLocation, MapEntry, Cacheable

public class FIR extends Airspace
A bean to store data about a Flight Information Region or ARTCC.
Since:
3.2
Version:
7.3
Author:
Luke
See Also:
  • Constructor Details

    • FIR

      public FIR(String id)
      Creates the bean.
      Parameters:
      id - the FIR ID
  • Method Details

    • isOceanic

      public boolean isOceanic()
      Returns if this is an Oceanic sector.
      Returns:
      TRUE if Oceanic, otherwise FALSE
      See Also:
    • isAux

      public boolean isAux()
      Returns if this is an Auxilliary sector.
      Returns:
      TRUE if Auxilliary, otherwise FALSE
      See Also:
    • getAliases

      public Collection<String> getAliases()
      Returns the aliases of this FIR.
      Returns:
      a Collection of aliases
      See Also:
    • setAux

      public void setAux(boolean isAux)
      Sets whether this is an Auxilliary sector.
      Parameters:
      isAux - TRUE if auxilliary, otherwise FALSE
      See Also:
    • setOceanic

      public void setOceanic(boolean isOceanic)
      Sets whether this is an Oceanic sector.
      Parameters:
      isOceanic - TRUE if oceanic, otherwise FALSE
      See Also:
    • addAlias

      public void addAlias(String code)
      Adds an alias for this FIR.
      Parameters:
      code - the alias
      Throws:
      NullPointerException - if code is null
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Airspace
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Airspace
    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Overrides:
      cacheKey in class Airspace
      Returns:
      the cache key for the object