Class AircraftPolicyOptions

java.lang.Object
org.deltava.beans.schedule.AircraftPolicyOptions
All Implemented Interfaces:
Serializable, Cloneable, Auditable

public class AircraftPolicyOptions extends Object implements Auditable
A bean to store airline-specific aircraft options.
Since:
8.7
Version:
8.7
Author:
Luke
See Also:
  • Constructor Details

    • AircraftPolicyOptions

      public AircraftPolicyOptions(String aircraft, String appCode)
      Creates the bean.
      Parameters:
      aircraft - the aircraft code
      appCode - the virtual airline code
  • Method Details

    • getCode

      public String getCode()
      Returns the virtual airline code for these options.
      Returns:
      the app code
    • getRange

      public int getRange()
      Returns the maximum range of the aircraft.
      Returns:
      the range in miles
      See Also:
    • getUseSoftRunways

      public boolean getUseSoftRunways()
      Returns whether this aircraft can use soft runways.
      Returns:
      TRUE if soft runways available, otherwise FALSE
      See Also:
    • getETOPS

      public ETOPS getETOPS()
      Returns whether the aircraft is ETOPS-qualified.
      Returns:
      TRUE if this is ETOPS-rated, otherwise FALSE
      See Also:
    • getSeats

      public int getSeats()
      Returns the number of seats on the aircraft.
      Returns:
      the number of seats
      See Also:
    • getTakeoffRunwayLength

      public int getTakeoffRunwayLength()
      Returns the Aircraft's minimum takeoff runway length.
      Returns:
      the runway length in feet
      See Also:
    • getLandingRunwayLength

      public int getLandingRunwayLength()
      Returns the Aircraft's minimum landing runway length.
      Returns:
      the runway length in feet
      See Also:
    • setRange

      public void setRange(int range)
      Updates the maximum range of the aircraft.
      Parameters:
      range - the range in miles
      See Also:
    • setETOPS

      public void setETOPS(ETOPS e)
      Updates whether this aircraft is ETOPS-rated.
      Parameters:
      e - the ETOPS classification
    • setUseSoftRunways

      public void setUseSoftRunways(boolean sr)
      Updates whether this aircraft can use soft runways.
      Parameters:
      sr - TRUE if soft runways available, otherwise FALSE
      See Also:
    • setTakeoffRunwayLength

      public void setTakeoffRunwayLength(int len)
      Updates the minimum takeoff runway length of the Aircraft.
      Parameters:
      len - the runway length in feet
      See Also:
    • setLandingRunwayLength

      public void setLandingRunwayLength(int len)
      Updates the minimum landing runway length of the Aircraft.
      Parameters:
      len - the runway length in feet
      See Also:
    • setSeats

      public void setSeats(int seats)
      Updates the number of seats on the aircraft.
      Parameters:
      seats - the number of seats
      See Also:
    • getAuditID

      public String getAuditID()
      Description copied from interface: Auditable
      Returns the object ID for this auditable object.
      Specified by:
      getAuditID in interface Auditable
      Returns:
      the ID