Package com.luciad.format.dafift.decoder
Class TLcdDAFIFTIndependentHelipadDecoder
java.lang.Object
com.luciad.format.dafift.decoder.ALcdDAFIFTModelDecoder
com.luciad.format.dafift.decoder.TLcdDAFIFTHelipadDecoder
com.luciad.format.dafift.decoder.TLcdDAFIFTIndependentHelipadDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable,ILcdModelDecoder
This extension of the
TLcdDAFIFTHelipadDecoder class can be used to produce a model
without having to specify a heliport model first. The decoded models have as model descriptor an
instance of TLcdDAFIFHelipadModelDescriptor.
The TLcdDAFIFTIndependentHelipadDecoder will decode the heliports himself. The
heliports in the final model will be retrieved from the resulting model.
To decode the heliport model, the TLcdDAFIFTIndependentHelipadDecoder will look for a
heliport source file in the same directory as the source file to be decoded. If no heliport source
file is found in this directory, or the heliport source file does not contain the heliports needed
to build the helipads, exceptions will occur during the decode process.- Since:
- 7.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdDAFIFTIndependentHelipadDecoder(ALcdAISObjectFactory aDomainFactory) Deprecated.TLcdDAFIFTIndependentHelipadDecoder(TLcdAISDataObjectFactory aDomainFactory) Creates a newTLcdDAFIFTIndependentHelipadDecoderobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecodeSource(String aSource) Tests whether thecanDecodeSourcemethod of all decoders on which this decoder depends on, returntrue.Creates a heliport model before starting the decode process.Returns the factory that is used to create domain objects.Deprecated.Returns the error message of the last decode call.Returns the input stream factory that is currently used for creating the input streams for the given source names.intReturns the number of error reports to be added to the error message.Returns the record filter that is currently used.String[]Returns the array ofStringobjects containing the names of the features that will be used as a unique key to insert objects into the model.voidsetDataObjectFactory(TLcdAISDataObjectFactory aFactory) Specifies the data factory.voidsetDomainFactory(ALcdAISObjectFactory aDomainFactory) Deprecated.voidsetInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory) Sets the input stream factory that will be used for creating the input streams for the given source names.voidsetMaxNumberOfErrorReports(int aMaxNumberOfErrorReports) Specifies a value for the maximum number of error reports.voidsetRecordFilter(ILcdDAFIFTRecordFilter aRecordFilter) Specifies a filter to be used while creating the model.Methods inherited from class com.luciad.format.dafift.decoder.TLcdDAFIFTHelipadDecoder
getDisplayName, setHelipadDefaultDisplayNameIndex, setHelipadFeaturesToBeDecoded, setHeliportModelMethods inherited from class com.luciad.format.dafift.decoder.ALcdDAFIFTModelDecoder
getDecodingBounds, getModelFilter, setDecodingBounds, setModelFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.model.ILcdModelDecoder
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFTIndependentHelipadDecoder
Deprecated.Creates a newTLcdDAFIFTIndependentHelipadDecoderobject. The user should specify which aDomainFactory he or she wants to use to create the heliports and the helipads.- Parameters:
aDomainFactory- The factory to be used to create the model objects.
-
TLcdDAFIFTIndependentHelipadDecoder
Creates a newTLcdDAFIFTIndependentHelipadDecoderobject. The user should specify which aDomainFactory he or she wants to use to create the heliports and the helipads.- Parameters:
aDomainFactory- The factory to be used to create the model objects.
-
-
Method Details
-
canDecodeSource
Tests whether thecanDecodeSourcemethod of all decoders on which this decoder depends on, returntrue.- Specified by:
canDecodeSourcein interfaceILcdModelDecoder- Parameters:
aSource- The name of the source file or directory that you want to decode.- Returns:
trueif this decoder can decode the data specified by the source name,falseotherwise.- See Also:
-
decode
Creates a heliport model before starting the decode process. This heliport model will be decoded using the specified source. After the heliport model is created, the decode method of the super class (TLcdDAFIFTHelipadDecoder.decode(String)) is called.- Specified by:
decodein interfaceILcdModelDecoder- Overrides:
decodein classTLcdDAFIFTHelipadDecoder- Parameters:
aSource- Either the directory containing the DAFIFT source file to decode or the DAFIFT source file itself.- Returns:
- the model build by reading the file found with the given source.
- Throws:
IOException- if an error occurs during the reading process.IllegalStateException- if no heliport model could be created.- See Also:
-
getUniqueKeyFeatureNames
Returns the array ofStringobjects containing the names of the features that will be used as a unique key to insert objects into the model.- Returns:
- the array of
Stringobjects containing the names of the features that will be used as a unique key to insert objects into the model.
-
getDomainFactory
Deprecated.Returns the factory that is used to create domain objects.- Returns:
- the factory that is used to create domain objects.
- See Also:
-
setDomainFactory
Deprecated.Specifies the domain factory. The domain factory will be used to create the domain objects decoded by this DAFIFT decoder.- Parameters:
aDomainFactory- The factory that will be used to create domain objects.- See Also:
-
getDataObjectFactory
Returns the factory that is used to create domain objects.- Returns:
- the factory that is used to create domain objects.
- See Also:
-
setDataObjectFactory
Specifies the data factory. The data factory will be used to create the domain objects decoded by this DAFIFT decoder. Decoders equipped with a data object factory that is notnull, will NOT use their associated domain factory (seegetDomainFactory()).- Parameters:
aFactory- The factory that will be used to create domain objects.- See Also:
-
getInputStreamFactory
Returns the input stream factory that is currently used for creating the input streams for the given source names.- Specified by:
getInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Returns:
- the input stream factory that is currently used.
- See Also:
-
setInputStreamFactory
Sets the input stream factory that will be used for creating the input streams for the given source names.- Specified by:
setInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Parameters:
aInputStreamFactory- The input stream factory to be used.- See Also:
-
getRecordFilter
Returns the record filter that is currently used.- Returns:
- the record filter that is currently used.
- See Also:
-
setRecordFilter
Specifies a filter to be used while creating the model. Only records that pass through this filter will be decoded into model objects.- Parameters:
aRecordFilter- The record filter that should be passed before a record can be decoded.- See Also:
-
getMaxNumberOfErrorReports
public int getMaxNumberOfErrorReports()Returns the number of error reports to be added to the error message. If there are more errors than the maxNumberOfErrorReports property, they won't be stored and you won't be able to see these errors in the error message after the decoding process.- Returns:
- the number of error reports to be added to the error message.
- See Also:
-
setMaxNumberOfErrorReports
public void setMaxNumberOfErrorReports(int aMaxNumberOfErrorReports) Specifies a value for the maximum number of error reports. If a negative value is set, all reported errors will be added to the error message.- Parameters:
aMaxNumberOfErrorReports- The maximum number of error reports to be added to the error message.- See Also:
-
getErrorMessage
Returns the error message of the last decode call. Note that the error message can only be retrieved once after a decode call.- Returns:
- a
Stringobject containing the errors occurred during the last decode process.
-
getDataObjectFactory()