Class TLcdDAFIFIndependentHelipadDecoder

All Implemented Interfaces:
ILcdDAFIFDecoder, ILcdInputStreamFactoryCapable, ILcdModelDecoder

public class TLcdDAFIFIndependentHelipadDecoder extends TLcdDAFIFHelipadDecoder
This extension of the TLcdDAFIFHelipadDecoder class can be used to produce a model without having to specify a heliport model first. Decoded models have as model descriptor an instance of TLcdDAFIFHelipadModelDescriptor.

The TLcdDAFIFIndependentHelipadDecoder will decode the heliports himself. The heliports in the final model will be retrieved from this self-made model.

To decode a heliport model, the TLcdDAFIFIndependentHelipadDecoder will look for a heliport source file in the same directory as the source file to be decoded. If no heliport source file is found in this directory, or the heliport source file does not contain the heliports needed to build the helipads, exceptions will occur during the decode process.

See Also:
  • Constructor Details

    • TLcdDAFIFIndependentHelipadDecoder

      @Deprecated public TLcdDAFIFIndependentHelipadDecoder(ALcdAISObjectFactory aFactory)
      Deprecated.
      Constructs a new TLcdDAFIFIndependentHelipadDecoder object.The user should specify which domainFactory he or she wants to use to create the heliports and the helipads.
      Parameters:
      aFactory - the factory to be used to create the heliports and the helipads
    • TLcdDAFIFIndependentHelipadDecoder

      public TLcdDAFIFIndependentHelipadDecoder(TLcdAISDataObjectFactory aFactory)
      Constructs a new TLcdDAFIFIndependentHelipadDecoder object.The user should specify which domainFactory he or she wants to use to create the heliports and the helipads.
      Parameters:
      aFactory - the factory to be used to create the heliports and the helipads
    • TLcdDAFIFIndependentHelipadDecoder

      @Deprecated public TLcdDAFIFIndependentHelipadDecoder(ALcdAISObjectFactory aFactory, Properties aDAFIFProperties)
      Deprecated.
      Constructs a new TLcdDAFIFIndependentHelipadDecoder object.The user should specify which domainFactory he or she wants to use to create the heliports and the helipads.
      Parameters:
      aFactory - the factory to be used to create the heliports and the helipads
      aDAFIFProperties - a Properties object that contains for each domain object the appropriate file name
    • TLcdDAFIFIndependentHelipadDecoder

      public TLcdDAFIFIndependentHelipadDecoder(TLcdAISDataObjectFactory aFactory, Properties aDAFIFProperties)
      Constructs a new TLcdDAFIFIndependentHelipadDecoder object.The user should specify which domainFactory he or she wants to use to create the heliports and the helipads.
      Parameters:
      aFactory - the factory to be used to create the heliports and the helipads
      aDAFIFProperties - a Properties object that contains for each domain object the appropriate file name
  • Method Details

    • canDecodeSource

      public boolean canDecodeSource(String aSource)
      Tests whether the canDecodeSource method of all decoders on which this decoder depends return true.

      Furthermore, the specified source should be a .toc file, or it should be a directory containing a file with the result of the getDecodeFileName method as file name.

      Specified by:
      canDecodeSource in interface ILcdModelDecoder
      Overrides:
      canDecodeSource in class ALcdDAFIFDecoder
      Parameters:
      aSource - the name of the source file or directory that you want to decode
      Returns:
      a boolean indicating whether the given source can be decoded
      See Also:
    • decode

      public ILcdModel decode(String aSource) throws IOException
      Creates a heliport model first. This heliport model will be decoded using aSource. Then the decode method of the TLcdDAFIFHelipadDecoder class is called.
      Specified by:
      decode in interface ILcdModelDecoder
      Overrides:
      decode in class TLcdDAFIFHelipadDecoder
      Parameters:
      aSource - either the directory containing the Dafif source file to decode (if you did not specify a properties file in the constructor, the default file name will be used) or a .toc file containing the Dafif properties (the data file should be in the same directory as the .toc file)
      Returns:
      the model build by reading the file found with aSource
      Throws:
      IOException - if an error occurs during the reading process
      See Also: