Package com.luciad.format.dafif.decoder
Class TLcdDAFIFIndependentILSDecoder
java.lang.Object
com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
com.luciad.format.dafif.decoder.ALcdDAFIFMultiModelDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFILSDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFIndependentILSDecoder
- All Implemented Interfaces:
ILcdDAFIFDecoder,ILcdDAFIFMultiModelDecoder,ILcdInputStreamFactoryCapable,ILcdModelDecoder
This extension of the
TLcdDAFIFILSDecoder class
can be used to produce a model without having to specify a runway model
first. Decoded models have as model descriptor an instance of
TLcdDAFIFILSModelListDescriptor.
The TLcdDAFIFIndependentILSDecoder will decode
the runways himself. The runways whose directions will contain an ILS decoded by
this decoder, will be retrieved from this self-made model.
To decode a runway model, the TLcdDAFIFIndependentILSDecoder
will look for a runway source file in the same directory as the source file to be decoded.
If no runway source file is found in this directory, or the runway source file does
not contain the runways needed to add the ILS objects, 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
ConstructorsConstructorDescriptionTLcdDAFIFIndependentILSDecoder(ALcdAISObjectFactory aDomainFactory) Deprecated.TLcdDAFIFIndependentILSDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.TLcdDAFIFIndependentILSDecoder(TLcdAISDataObjectFactory aDomainFactory) Creates a newTLcdDAFIFIndependentILSDecoderobject.TLcdDAFIFIndependentILSDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentILSDecoderobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecodeSource(String aSource) Tests whether thecanDecodeSourcemethod of all decoders on which this decoder depends return true.Creates a runway model first.Methods inherited from class com.luciad.format.dafif.decoder.TLcdDAFIFILSDecoder
createModelDescriptor, createModelDescriptor, createRequiredIndices, getDecodeFileName, getDisplayName, handleRecord, setDMEDefaultDisplayNameIndex, setDMEFeaturesToBeDecoded, setGlidePathDefaultDisplayNameIndex, setGlidePathFeaturesToBeDecoded, setLocalizerDefaultDisplayNameIndex, setLocalizerFeaturesToBeDecoded, setMarkerDefaultDisplayNameIndex, setMarkerFeaturesToBeDecoded, setRunwayModelMethods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFMultiModelDecoder
cleanUp, getModelCount, postProcess, setKeyFeatureNames, setModelCountMethods 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, transformPointToReferenceDatumSFCTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.format.dafif.decoder.ILcdDAFIFDecoder
getBounds, getDAFIFProperties, getDataObjectFactory, getDecodingBounds, getDomainFactory, getErrorMessage, setBounds, setDAFIFModelFilter, setDAFIFProperties, setDataObjectFactory, setDecodingBounds, setDomainFactory, setStoreOriginalReferenceMethods inherited from interface com.luciad.model.ILcdModelDecoder
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFIndependentILSDecoder
Deprecated.Creates a newTLcdDAFIFIndependentILSDecoderobject. The user should specify which domainFactory he or she wants to use to create the runways and the ILS objects.- Parameters:
aDomainFactory- the factory to be used to create the model objects
-
TLcdDAFIFIndependentILSDecoder
Creates a newTLcdDAFIFIndependentILSDecoderobject. The user should specify which domainFactory he or she wants to use to create the runways and the ILS objects.- Parameters:
aDomainFactory- the factory to be used to create the model objects
-
TLcdDAFIFIndependentILSDecoder
@Deprecated public TLcdDAFIFIndependentILSDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.Creates a newTLcdDAFIFIndependentILSDecoderobject. The user should specify which domainFactory he or she wants to use to create the runways and the ILS objects.- Parameters:
aDomainFactory- the factory to be used to create the model objectsaDAFIFProperties- aPropertiesobject that contains for each domain object the appropriate file name
-
TLcdDAFIFIndependentILSDecoder
public TLcdDAFIFIndependentILSDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentILSDecoderobject. The user should specify which domainFactory he or she wants to use to create the runways and the ILS objects.- Parameters:
aDomainFactory- the factory to be used to create the model objectsaDAFIFProperties- aPropertiesobject that contains for each domain object the appropriate file name
-
-
Method Details
-
canDecodeSource
Tests whether thecanDecodeSourcemethod 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
getDecodeFileNamemethod as file name.- Specified by:
canDecodeSourcein interfaceILcdModelDecoder- Overrides:
canDecodeSourcein 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 runway model first. This runway model will be decoded using aSource. Then the decode method of theTLcdDAFIFILSDecoderclass is called.- Specified by:
decodein interfaceILcdModelDecoder- Overrides:
decodein classTLcdDAFIFILSDecoder- 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:
-