Class Airframe

java.lang.Object
org.deltava.beans.flight.Airframe
All Implemented Interfaces:
Serializable, Comparable<Airframe>, ComboAlias, UseCount

public class Airframe extends Object implements Serializable, UseCount, ComboAlias, Comparable<Airframe>
A bean to store airframe information.
Since:
10.4
Version:
11.2
Author:
Luke
See Also:
  • Constructor Details

    • Airframe

      public Airframe(String eqType, String tailCode, String sbID)
      Creates the bean.
      Parameters:
      eqType - the aricraft type
      tailCode - the aircraft tail code
      sbID - the SimBrief airframe ID
  • Method Details

    • getEquipmentType

      public String getEquipmentType()
      Returns the equipment type for this airframe.
      Returns:
      the aircraft name
    • getSimBriefID

      public String getSimBriefID()
      Returns the SimBrief airframe ID.
      Returns:
      the airframe ID
    • getTailCode

      public String getTailCode()
      Returns the aircraft tail code.
      Returns:
      the tail code
    • getSDK

      public String getSDK()
      Returns the ACARS SDK name.
      Returns:
      the SDK name
    • getUseCount

      public int getUseCount()
      Description copied from interface: UseCount
      Returns the number of times this object has been used.
      Specified by:
      getUseCount in interface UseCount
      Returns:
      the number of uses
    • getLastUse

      public Instant getLastUse()
      Returns the date this airframe was last used in a SimBrief dispatch package.
      Returns:
      the last usage date/time
    • setSDK

      public void setSDK(String sdkName)
      Updates the ACARS SDK used with this airframe.
      Parameters:
      sdkName - the SDK name
    • setUseCount

      public void setUseCount(int cnt)
      Updates the number of times this airframe has been used in a SimBrief dispatch package.
      Parameters:
      cnt - the number of flights
    • setLastUse

      public void setLastUse(Instant dt)
      Updates the date this airframe was last used in a SimBrief dispatch package.
      Parameters:
      dt - the last usage date/time
    • getComboName

      public String getComboName()
      Description copied from interface: ComboAlias
      Returns the visible name to use in the HTML <OPTION> element.
      Specified by:
      getComboName in interface ComboAlias
      Returns:
      The visible name for this entry
    • getComboAlias

      public String getComboAlias()
      Description copied from interface: ComboAlias
      Returns the alias to use in the HTML <OPTION> element.
      Specified by:
      getComboAlias in interface ComboAlias
      Returns:
      The alias for this entry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Airframe a)
      Specified by:
      compareTo in interface Comparable<Airframe>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object