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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.Returns the equipment type for this airframe.Returns the date this airframe was last used in a SimBrief dispatch package.getSDK()
Returns the ACARS SDK name.Returns the SimBrief airframe ID.Returns the aircraft tail code.int
Returns the number of times this object has been used.int
hashCode()
void
setLastUse
(Instant dt) Updates the date this airframe was last used in a SimBrief dispatch package.void
Updates the ACARS SDK used with this airframe.void
setUseCount
(int cnt) Updates the number of times this airframe has been used in a SimBrief dispatch package.toString()
-
Constructor Details
-
Airframe
-
-
Method Details
-
getEquipmentType
Returns the equipment type for this airframe.- Returns:
- the aircraft name
-
getSimBriefID
-
getTailCode
-
getSDK
-
getUseCount
public int getUseCount()Description copied from interface:UseCount
Returns the number of times this object has been used.- Specified by:
getUseCount
in interfaceUseCount
- Returns:
- the number of uses
-
getLastUse
Returns the date this airframe was last used in a SimBrief dispatch package.- Returns:
- the last usage date/time
-
setSDK
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
Updates the date this airframe was last used in a SimBrief dispatch package.- Parameters:
dt
- the last usage date/time
-
getComboName
Description copied from interface:ComboAlias
Returns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboName
in interfaceComboAlias
- Returns:
- The visible name for this entry
-
getComboAlias
Description copied from interface:ComboAlias
Returns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAlias
in interfaceComboAlias
- Returns:
- The alias for this entry
-
hashCode
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Airframe>
-
equals
-