Class MapRouteEntry

All Implemented Interfaces:
Serializable, Comparable<Object>, FuelChecker, CalendarEntry, GeoLocation, GeospaceLocation, IDBean, MapEntry, MarkerMapEntry, TabbedMapEntry, Cacheable

public class MapRouteEntry extends ACARSRouteEntry implements TabbedMapEntry
A bean to store a snapshot of an ACARS-logged flight.
Since:
1.0
Version:
11.1
Author:
Luke
See Also:
  • Constructor Details

    • MapRouteEntry

      public MapRouteEntry(Instant dt, GeoLocation gl, Pilot usr, String eqType)
      Creates the bean.
      Parameters:
      dt - the date/time
      gl - the aircraft location
      usr - the Pilot
      eqType - the aircraft type
  • Method Details

    • getExternalID

      public String getExternalID()
      Returns the external flight ID, used by clients such as simFDR.
      Returns:
      the ID
    • setCheckRide

      public void setCheckRide(boolean isCR)
      Updates whether the pilot is flying a check ride.
      Parameters:
      isCR - TRUE if a check ride, otherwise FALSE
    • setDispatcher

      public void setDispatcher(DispatchType dsp)
      Updates whether the pilot is flying using a Dispatch-generated flight route.
      Parameters:
      dsp - the DispatchType
    • setFlightNumber

      public void setFlightNumber(String flightNumber)
      Updates the flight code.
      Parameters:
      flightNumber - the flight code
    • setAirportD

      public void setAirportD(Airport a)
      Updates the departure Airport.
      Parameters:
      a - the Airport
    • setAirportA

      public void setAirportA(Airport a)
      Updates the arrival Airport.
      Parameters:
      a - the Airport
    • setNetwork

      public void setNetwork(OnlineNetwork network)
      Updates the online network used for this flight.
      Parameters:
      network - the OnlineNetwork
    • setPhaseName

      public void setPhaseName(String phase)
      Updates the flight's flight phase.
      Parameters:
      phase - the phase name
    • setRecorder

      public void setRecorder(Recorder fdr)
      Updates the Flight Data Recorder used to generate this entry.
      Parameters:
      fdr - a Recorder
    • setLoadFactor

      public void setLoadFactor(double lf)
      Updates the load factor for this flight.
      Parameters:
      lf - the load factor
    • setPassengers

      public void setPassengers(int pax)
      Updates the passenger count for this flight.
      Parameters:
      pax - the passenger count
    • setSimulator

      public void setSimulator(Simulator s)
      Updates the Simulator used on this flight.
      Parameters:
      s - the Simulator
    • setCountry

      public void setCountry(Country c)
      Updates what Country's airspace this entry is in.
      Parameters:
      c - a Country
    • setTailCode

      public void setTailCode(String tailCode)
      Updates the aircraft's tail code.
      Parameters:
      tailCode - the tail code
    • setExternalID

      public void setExternalID(String id)
      Sets the external flight ID, for use by third-party clients such as simFDR.
      Parameters:
      id - the ID
    • getIconColor

      public final String getIconColor()
      Description copied from interface: MarkerMapEntry
      Returns the icon color for this entry if displayed in a Google Map.
      Specified by:
      getIconColor in interface MarkerMapEntry
      Overrides:
      getIconColor in class ACARSRouteEntry
      Returns:
      the icon color
    • getInfoBox

      public final String getInfoBox()
      Description copied from interface: MapEntry
      Returns the text to display in this marker's infobox if displayed in a Google Map.
      Specified by:
      getInfoBox in interface MapEntry
      Overrides:
      getInfoBox in class ACARSRouteEntry
      Returns:
      the infobox HTML text, or null if no infobox to be displayed
    • getTabs

      public final LinkedHashMap<String,String> getTabs()
      Description copied from interface: TabbedMapEntry
      Returns the tab names.
      Specified by:
      getTabs in interface TabbedMapEntry
      Returns:
      a List of tab names