public class TLcdDAFIFIndependentAerodromeNavaidDecoder extends TLcdDAFIFAerodromeNavaidDecoder
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.
DAFIF_PROP_EXTENSION, fRecordCount
Constructor and Description |
---|
TLcdDAFIFIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
TLcdDAFIFIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Deprecated.
|
TLcdDAFIFIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory)
Creates a new
TLcdDAFIFIndependentAerodromeNavaidDecoder object.The user
should specify which domainFactory he or she wants to use to create the navaids. |
TLcdDAFIFIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Creates a new
TLcdDAFIFIndependentAerodromeNavaidDecoder object.The user
should specify which domainFactory he or she wants to use to create the navaids. |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeSource(String aSource)
Tests whether the
canDecodeSource method of all decoders on which
this decoder depends return true. |
ILcdModel |
decode(String aSource)
Creates a navaid modelList first.
|
createModelDescriptor, createModelDescriptor, createRequiredIndices, getDecodeFileName, getDisplayName, handleRecord, setDMEDefaultDisplayNameIndex, setNavaidModel, setNDBDefaultDisplayNameIndex, setTACANDefaultDisplayNameIndex, setVORDefaultDisplayNameIndex
cleanUp, getModelCount, postProcess, setKeyFeatureNames, setModelCount
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds, getDAFIFProperties, getDataObjectFactory, getDecodingBounds, getDomainFactory, getErrorMessage, setBounds, setDAFIFModelFilter, setDAFIFProperties, setDataObjectFactory, setDecodingBounds, setDomainFactory, setStoreOriginalReference
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
@Deprecated public TLcdDAFIFIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory)
TLcdDAFIFIndependentAerodromeNavaidDecoder
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
.
aDomainFactory
- the factory to be used to create the navaidspublic TLcdDAFIFIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory)
TLcdDAFIFIndependentAerodromeNavaidDecoder
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!!
aDomainFactory
- the factory to be used to create the navaids@Deprecated public TLcdDAFIFIndependentAerodromeNavaidDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentAerodromeNavaidDecoder
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.
aDomainFactory
- the factory to be used to create the navaidsaDAFIFProperties
- a Properties
object that contains for each domain object
the appropriate file namepublic TLcdDAFIFIndependentAerodromeNavaidDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentAerodromeNavaidDecoder
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.
aDomainFactory
- the factory to be used to create the navaidsaDAFIFProperties
- a Properties
object that contains for each domain object
the appropriate file namepublic boolean canDecodeSource(String aSource)
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.
canDecodeSource
in interface ILcdModelDecoder
canDecodeSource
in class ALcdDAFIFDecoder
aSource
- the name of the source file or directory that you want to decodeILcdModelDecoder.decode(String)
,
ILcdModelDecoder.decodeModelMetadata(String)
public ILcdModel decode(String aSource) throws IOException
TLcdDAFIFAerodromeNavaidDecoder
class is called.decode
in interface ILcdModelDecoder
decode
in class TLcdDAFIFAerodromeNavaidDecoder
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)IOException
- if an error occurs during the reading processILcdModelDecoder.canDecodeSource(String)