Package com.luciad.format.dafif.decoder
Class TLcdDAFIFIndependentRunwayDecoder
java.lang.Object
com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
com.luciad.format.dafif.decoder.ALcdDAFIFSingleModelDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFRunwayDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFIndependentRunwayDecoder
- All Implemented Interfaces:
ILcdDAFIFDecoder
,ILcdInputStreamFactoryCapable
,ILcdModelDecoder
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:
-
Field Summary
Fields inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
DAFIF_PROP_EXTENSION, fRecordCount
-
Constructor Summary
ConstructorDescriptionTLcdDAFIFIndependentRunwayDecoder
(ALcdAISObjectFactory aDomainFactory) Deprecated.TLcdDAFIFIndependentRunwayDecoder
(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.TLcdDAFIFIndependentRunwayDecoder
(TLcdAISDataObjectFactory aDomainFactory) Creates a newTLcdDAFIFIndependentRunwayDecoder
object.TLcdDAFIFIndependentRunwayDecoder
(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentRunwayDecoder
object. -
Method Summary
Methods inherited from class com.luciad.format.dafif.decoder.TLcdDAFIFRunwayDecoder
createModelDescriptor, createRequiredIndex, getDecodeFileName, getDisplayName, handleRecord, isDecodeArrestingGear, readHighEndLat, readHighEndLon, readLocalHorizontalDatumFromFmt1, readLowEndLat, readLowEndLon, setAerodromeModel, setArrestingGearFeaturesToBeDecoded, setDecodeArrestingGear, setRunwayDefaultDisplayNameIndex, setRunwayDirectionDefaultDisplayNameIndex, setRunwayDirectionFeaturesToBeDecoded, setRunwayFeaturesToBeDecoded
Methods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFSingleModelDecoder
cleanUp, setKeyFeatureNames
Methods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
addErrorReport, canDecodeSource, getAltitudeType, getBearingTypeForChar, getBounds, getDAFIFProperties, getDataObjectFactory, getDecodingBounds, getDomainFactory, getErrorMessage, getInputStream, getInputStreamFactory, getLocalHorizontalDatum, getModelFilter, getRecordCount, initializeErrorMessage, isStoreOriginalReference, isTraceOn, loadCFGProperties, read, readExactValue, readFormat, readMinLength, readRecord, setBounds, setDAFIFModelFilter, setDAFIFProperties, setDataObjectFactory, setDecodingBounds, setDomainFactory, setInputStreamFactory, setStoreOriginalReference, setTraceOn, transformPointToReferenceDatumSFCT
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDecoder
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFIndependentRunwayDecoder
Deprecated.Creates a newTLcdDAFIFIndependentRunwayDecoder
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
Creates a newTLcdDAFIFIndependentRunwayDecoder
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 newTLcdDAFIFIndependentRunwayDecoder
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 objectsaDAFIFProperties
- aProperties
object that contains for each domain object the appropriate file name
-
TLcdDAFIFIndependentRunwayDecoder
public TLcdDAFIFIndependentRunwayDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentRunwayDecoder
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 objectsaDAFIFProperties
- aProperties
object that contains for each domain object the appropriate file name
-
-
Method Details
-
decode
Creates an aerodrome model first. This aerodrome model will be decoded using aSource. Then the decode method of theTLcdDAFIFRunwayDecoder
class is called.- Specified by:
decode
in interfaceILcdModelDecoder
- Overrides:
decode
in classTLcdDAFIFRunwayDecoder
- 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:
-