Class DispatchLogEntry

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.DispatchLogEntry
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, RoutePair, Cacheable

public class DispatchLogEntry extends DatabaseBean implements RoutePair
A bean to store ACARS Dispatch flight data log entries.
Since:
9.0
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • DispatchLogEntry

      public DispatchLogEntry(int id)
      Creates the bean.
      Parameters:
      id - the database ID
  • Method Details

    • getCreatedOn

      public Instant getCreatedOn()
      Returns the creation date of this dispatch log entry.
      Returns:
      the creation date/time
    • getFlightID

      public int getFlightID()
      Returns the database ID of the ACARS flight associated with this Dispatch entry.
      Returns:
      the database ID, or zero if none
    • getDispatcherID

      public int getDispatcherID()
      Returns the database ID of the Dispatcher who created this log entry.
      Returns:
      the Dispatcher's database ID
    • getPilotID

      public int getPilotID()
      Returns the database ID of the Pilot who received this flight data.
      Returns:
      the Pilot's database ID
    • getFuelLoad

      public int getFuelLoad()
      Returns the total fuel load for this dispatch entry.
      Returns:
      the total fuel load in pounds
    • getEquipmentType

      public String getEquipmentType()
      Returns the equipment type used in this flight data.
      Returns:
      the equipment type
    • getCruiseAltitude

      public String getCruiseAltitude()
      Returns the cruise altitude.
      Returns:
      the initial cruise altitude
    • getSimulator

      public Simulator getSimulator()
      Returns the simulator for this dispatch log entry.
      Returns:
      the Simulator
    • getAirportD

      public Airport getAirportD()
      Description copied from interface: RoutePair
      Returns the departure Airport.
      Specified by:
      getAirportD in interface RoutePair
      Returns:
      the departure Airport
    • getAirportA

      public Airport getAirportA()
      Description copied from interface: RoutePair
      Returns the arrival Airport.
      Specified by:
      getAirportA in interface RoutePair
      Returns:
      the arrival Airport
    • getSID

      public String getSID()
      Returns the SID for this dispatch entry.
      Returns:
      the SID ID, or null if none
    • getSTAR

      public String getSTAR()
      Returns the STAR for this dispatch entry.
      Returns:
      the STAR ID, or null if none
    • getRoute

      public String getRoute()
      Returns the Route for this dispatch entry.
      Returns:
      the route
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the creation date of this log entry.
      Parameters:
      dt - the creation date/time
    • setFlightID

      public void setFlightID(int id)
    • setDispatcherID

      public void setDispatcherID(int id)
    • setPilotID

      public void setPilotID(int id)
    • setSimulator

      public void setSimulator(Simulator sim)
      Updates the simulator for this dispatch log entry.
      Parameters:
      sim - the Simulator
    • setAirportD

      public void setAirportD(Airport a)
      Updates the departure airport of this dipsatch entry.
      Parameters:
      a - the Airport
    • setAirportA

      public void setAirportA(Airport a)
      Updates the arrival airport of this dipsatch entry.
      Parameters:
      a - the Airport
    • setEquipmentType

      public void setEquipmentType(String eqType)
      Updates the equipment used in this dispatch log entry.
      Parameters:
      eqType - the equipment type.
    • setCruiseAltitude

      public void setCruiseAltitude(String alt)
      Updates the cruise altitude for this dispatch log entry.
      Parameters:
      alt - the initial cruise altitude
    • setFuelLoad

      public void setFuelLoad(int fuel)
      Updates the fuel load for this dispatch entry.
      Parameters:
      fuel - the total fuel load in pounds
    • setSID

      public void setSID(String sid)
      Updates the SID for this dispatch entry.
      Parameters:
      sid - the SID ID
    • setSTAR

      public void setSTAR(String star)
      Updates the STAR for this dispatch entry.
      Parameters:
      star - the STAR ID
    • setRoute

      public void setRoute(String rt)
      Updates the Route for this dispatch entry.
      Parameters:
      rt - the route waypoints