Class TLcdDAFIFIndependentRunwayDecoder

All Implemented Interfaces:
ILcdDAFIFDecoder, ILcdInputStreamFactoryCapable, ILcdModelDecoder

public class TLcdDAFIFIndependentRunwayDecoder extends TLcdDAFIFRunwayDecoder
This extension of the TLcdDAFIFRunwayDecoder class can be used to produce a model without having to specify an aerodrome model first. Decoded models have as model descriptor an instance of TLcdDAFIFRunwayModelDescriptor.

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

To decode an aerodrome model, the TLcdDAFIFIndependentRunwayDecoder will look for an aerodrome source file in the same directory as the source file to be decoded. If no aerodrome source file is found in this directory, or the aerodrome source file does not contain the aerodromes needed to build the runways, exceptions will occur during the decode process.

See Also:
  • Constructor Details

    • TLcdDAFIFIndependentRunwayDecoder

      @Deprecated public TLcdDAFIFIndependentRunwayDecoder(ALcdAISObjectFactory aDomainFactory)
      Deprecated.
      Creates a new TLcdDAFIFIndependentRunwayDecoder object. The user should specify which domainFactory he or she wants to use to create the aerodromes and the runways.
      Parameters:
      aDomainFactory - the factory to be used to create the model objects
    • TLcdDAFIFIndependentRunwayDecoder

      public TLcdDAFIFIndependentRunwayDecoder(TLcdAISDataObjectFactory aDomainFactory)
      Creates a new TLcdDAFIFIndependentRunwayDecoder object. The user should specify which domainFactory he or she wants to use to create the aerodromes and the runways.
      Parameters:
      aDomainFactory - the factory to be used to create the model objects
    • TLcdDAFIFIndependentRunwayDecoder

      @Deprecated public TLcdDAFIFIndependentRunwayDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties)
      Deprecated.
      Creates a new TLcdDAFIFIndependentRunwayDecoder object. The user should specify which domainFactory he or she wants to use to create the aerodromes and the runways.
      Parameters:
      aDomainFactory - the factory to be used to create the model objects
      aDAFIFProperties - a Properties object that contains for each domain object the appropriate file name
    • TLcdDAFIFIndependentRunwayDecoder

      public TLcdDAFIFIndependentRunwayDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties)
      Creates a new TLcdDAFIFIndependentRunwayDecoder object. The user should specify which domainFactory he or she wants to use to create the aerodromes and the runways.
      Parameters:
      aDomainFactory - the factory to be used to create the model objects
      aDAFIFProperties - a Properties object that contains for each domain object the appropriate file name
  • Method Details

    • decode

      public ILcdModel decode(String aSource) throws IOException
      Creates an aerodrome model first. This aerodrome model will be decoded using aSource. Then the decode method of the TLcdDAFIFRunwayDecoder class is called.
      Specified by:
      decode in interface ILcdModelDecoder
      Overrides:
      decode in class TLcdDAFIFRunwayDecoder
      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: