Class ACARSMapEntry

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.ACARSMapEntry
All Implemented Interfaces:
Serializable, Comparable<Object>, GeoLocation, IDBean, MapEntry, MarkerMapEntry, Cacheable
Direct Known Subclasses:
GroundMapEntry, RouteEntry

public abstract class ACARSMapEntry extends DatabaseBean implements MarkerMapEntry
An abstract class to describe ACARS map entries.
Since:
2.2
Version:
7.2
Author:
Luke
See Also:
  • Field Details

    • _pos

      protected GeoLocation _pos
    • _usr

      protected Pilot _usr
    • _clientBuild

      protected int _clientBuild
    • _betaBuild

      protected int _betaBuild
    • _busy

      protected boolean _busy
  • Constructor Details

    • ACARSMapEntry

      protected ACARSMapEntry(GeoLocation loc)
      Creates the map entry.
      Parameters:
      loc - the entry location
  • Method Details

    • getLocation

      public GeoLocation getLocation()
      Returns the entry's position.
      Returns:
      the position
    • getLatitude

      public final double getLatitude()
      Description copied from interface: GeoLocation
      Returns the latitude of this location.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
    • getLongitude

      public final double getLongitude()
      Description copied from interface: GeoLocation
      Returns the longitude of this location.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees
    • getPilot

      public Pilot getPilot()
      Returns the Pilot.
      Returns:
      the Pilot bean, or null if not populated
    • isBusy

      public boolean isBusy()
      Returns whether the user is marked Busy.
      Returns:
      TRUE if Busy, otherwise FALSE
    • getType

      public abstract ACARSMapEntry.EntryType getType()
      Returns the map entry type.
      Returns:
      the EntryType
    • setClientBuild

      public void setClientBuild(int buildNumber, int beta)
      Sets the ACARS client version used.
      Parameters:
      buildNumber - the client build number
      beta - the beta version number
    • setBusy

      public void setBusy(boolean isBusy)
      Marks the user as Busy.
      Parameters:
      isBusy - TRUE if Busy, otherwise FALSE