Class Installer

All Implemented Interfaces:
Serializable, Cloneable, Comparable<LibraryEntry>, Auditable, ComboAlias, ViewEntry, Cacheable

public class Installer extends FleetEntry implements ComboAlias
A bean to store information about Fleet Library installers.
Since:
1.0
Version:
6.0
Author:
Luke
See Also:
  • Constructor Details

    • Installer

      public Installer(File f)
      Creates a new Fleet Installer entry for a given file.
      Parameters:
      f - the File
  • Method Details

    • getApps

      public Collection<AirlineInformation> getApps()
      Returns the Airlines whose Fleet Libraries will include this Installer.
      Returns:
      a Collection of AirlineInformation beans
      See Also:
    • getCode

      public String getCode()
      Returns this installer's equipment code.
      Returns:
      the equipment code
      See Also:
    • getImage

      public String getImage()
      Returns this installer's label image.
      Returns:
      the image resource name
      See Also:
    • getVersion

      public String getVersion()
      Returns a string representation of the version (MAJOR.MINOR.SUB).
      Specified by:
      getVersion in class FleetEntry
      Returns:
      a version string
    • getVersionCode

      public String getVersionCode()
      Returns a string representation of the version (MAJORMINORSUB).
      Returns:
      a version code
    • addApp

      public void addApp(AirlineInformation info)
      Adds this Installer to an Airline's Fleet Library.
      Parameters:
      info - an AirlineInformation bean
      See Also:
    • addFSVersion

      public void addFSVersion(Simulator sim)
      Adds a Simulator version compatible with this Fleet Installer.
      Parameters:
      sim - a Simulator
      See Also:
    • getFSVersions

      public Collection<Simulator> getFSVersions()
      Returns the Simulator versions compatible with this Installer.
      Returns:
      a Collection of Simulators
    • setCode

      public void setCode(String code)
      Updates this installer's equipment type code (eg. DC8)
      Parameters:
      code - the equipment type code (will be converted to uppercase)
      See Also:
    • setImage

      public void setImage(String imgName)
      Updates this installer's label image name.
      Parameters:
      imgName - the image resource name
      See Also:
    • 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