Class TLcdDAFIFIndependentAerodromeNavaidDecoder
- All Implemented Interfaces:
ILcdDAFIFDecoder
,ILcdDAFIFMultiModelDecoder
,ILcdInputStreamFactoryCapable
,ILcdModelDecoder
TLcdDAFIFAerodromeNavaidDecoder
class
can be used to produce a model without having to specify a navaid model
first. Decoded models have as model descriptor an instance of
TLcdDAFIFAerodromeNavaidModelListDescriptor
.
The TLcdDAFIFIndependentAerodromeNavaidDecoder
will decode
the navaids himself. The navaids in the final model will be retrieved from
the resulting modelList.
To decode a navaid modelList, the TLcdDAFIFIndependentAerodromeNavaidDecoder
will look for a navaid source file in the same directory as the source file to be decoded.
If no navaid source file is found in this directory, or the navaid source file does
not cover the aerodrome-navaid source file, 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
ConstructorDescriptionTLcdDAFIFIndependentAerodromeNavaidDecoder
(ALcdAISObjectFactory aDomainFactory) Deprecated.TLcdDAFIFIndependentAerodromeNavaidDecoder
(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.TLcdDAFIFIndependentAerodromeNavaidDecoder
(TLcdAISDataObjectFactory aDomainFactory) Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids.TLcdDAFIFIndependentAerodromeNavaidDecoder
(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeSource
(String aSource) Tests whether thecanDecodeSource
method of all decoders on which this decoder depends return true.Creates a navaid modelList first.Methods inherited from class com.luciad.format.dafif.decoder.TLcdDAFIFAerodromeNavaidDecoder
createModelDescriptor, createModelDescriptor, createRequiredIndices, getDecodeFileName, getDisplayName, handleRecord, setDMEDefaultDisplayNameIndex, setNavaidModel, setNDBDefaultDisplayNameIndex, setTACANDefaultDisplayNameIndex, setVORDefaultDisplayNameIndex
Methods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFMultiModelDecoder
cleanUp, getModelCount, postProcess, setKeyFeatureNames, setModelCount
Methods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
addErrorReport, 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.format.dafif.decoder.ILcdDAFIFDecoder
getBounds, getDAFIFProperties, getDataObjectFactory, getDecodingBounds, getDomainFactory, getErrorMessage, setBounds, setDAFIFModelFilter, setDAFIFProperties, setDataObjectFactory, setDecodingBounds, setDomainFactory, setStoreOriginalReference
Methods inherited from interface com.luciad.model.ILcdModelDecoder
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFIndependentAerodromeNavaidDecoder
Deprecated.Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids.Please note that the specified domainFactory must not be
null
.- Parameters:
aDomainFactory
- the factory to be used to create the navaids
-
TLcdDAFIFIndependentAerodromeNavaidDecoder
Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids.Please note that the specified domainFactory must not be NULL!!
- Parameters:
aDomainFactory
- the factory to be used to create the navaids
-
TLcdDAFIFIndependentAerodromeNavaidDecoder
@Deprecated public TLcdDAFIFIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids.In the super class, this parameter may be null, because no model objects are created. All model objects are retrieved from a specified navaid modelList. Here, on the other hand, the navaid modelList will be decoded internally. So a domainFactory is needed.
- Parameters:
aDomainFactory
- the factory to be used to create the navaidsaDAFIFProperties
- aProperties
object that contains for each domain object the appropriate file name
-
TLcdDAFIFIndependentAerodromeNavaidDecoder
public TLcdDAFIFIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentAerodromeNavaidDecoder
object.The user should specify which domainFactory he or she wants to use to create the navaids.In the super class, this parameter may be null, because no model objects are created. All model objects are retrieved from a specified navaid modelList. Here, on the other hand, the navaid modelList will be decoded internally. So a domainFactory is needed.
- Parameters:
aDomainFactory
- the factory to be used to create the navaidsaDAFIFProperties
- aProperties
object that contains for each domain object the appropriate file name
-
-
Method Details
-
canDecodeSource
Tests whether thecanDecodeSource
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 interfaceILcdModelDecoder
- Overrides:
canDecodeSource
in classALcdDAFIFDecoder
- 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
Creates a navaid modelList first. This navaid modelList will be decoded using aSource. Then the decode method of theTLcdDAFIFAerodromeNavaidDecoder
class is called.- Specified by:
decode
in interfaceILcdModelDecoder
- Overrides:
decode
in classTLcdDAFIFAerodromeNavaidDecoder
- 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:
-