Package com.luciad.format.dafif.decoder
Class TLcdDAFIFIndependentATSRouteDecoder
java.lang.Object
com.luciad.format.dafif.decoder.ALcdDAFIFDecoder
com.luciad.format.dafif.decoder.ALcdDAFIFSingleModelDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFATSRouteDecoder
com.luciad.format.dafif.decoder.TLcdDAFIFIndependentATSRouteDecoder
- All Implemented Interfaces:
ILcdDAFIFDecoder
,ILcdInputStreamFactoryCapable
,ILcdModelDecoder
This extension of the
TLcdDAFIFATSRouteDecoder
class
can be used to produce a model without having to specify a waypoint model
first. Decoded models have as model descriptor an instance of
TLcdDAFIFATSRouteModelDescriptor
.
The TLcdDAFIFIndependentATSRouteDecoder
will decode
the waypoints himself. The waypoints in the final model will be retrieved from
this self-made model.
To decode a waypoint model, the TLcdDAFIFIndependentATSRouteDecoder
will look for a waypoint source file in the same directory as the source file to be decoded.
If no waypoint source file is found in this directory, or the waypoint source file does
not cover the waypoints needed to build the ATS routes, 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
ConstructorDescriptionTLcdDAFIFIndependentATSRouteDecoder
(ALcdAISObjectFactory aDomainFactory) Deprecated.TLcdDAFIFIndependentATSRouteDecoder
(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.TLcdDAFIFIndependentATSRouteDecoder
(TLcdAISDataObjectFactory aDomainFactory) Creates a newTLcdDAFIFIndependentATSRouteDecoder
object.TLcdDAFIFIndependentATSRouteDecoder
(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentATSRouteDecoder
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeSource
(String aSource) Tests whether thecanDecodeSource
method of all decoders on which this decoder depends return true.Creates a waypoint model first.Methods inherited from class com.luciad.format.dafif.decoder.TLcdDAFIFATSRouteDecoder
createModelDescriptor, createRequiredIndex, getDecodeFileName, getDisplayName, handleRecord, setATSRouteFeaturesToBeDecoded, setATSRouteSegmentFeaturesToBeDecoded, setRouteDefaultDisplayNameIndex, setRouteSegmentDefaultDisplayNameIndex, setWaypointsModel
Methods inherited from class com.luciad.format.dafif.decoder.ALcdDAFIFSingleModelDecoder
cleanUp, setKeyFeatureNames
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.model.ILcdModelDecoder
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFIndependentATSRouteDecoder
Deprecated.Creates a newTLcdDAFIFIndependentATSRouteDecoder
object. The user should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.- Parameters:
aDomainFactory
- the factory to be used to create the waypoints and the ATS routes
-
TLcdDAFIFIndependentATSRouteDecoder
Creates a newTLcdDAFIFIndependentATSRouteDecoder
object. The user should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.- Parameters:
aDomainFactory
- the factory to be used to create the waypoints and the ATS routes
-
TLcdDAFIFIndependentATSRouteDecoder
@Deprecated public TLcdDAFIFIndependentATSRouteDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties) Deprecated.Creates a newTLcdDAFIFIndependentATSRouteDecoder
object. The user should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.- Parameters:
aDomainFactory
- the factory to be used to create the waypoints and the ATS routesaDAFIFProperties
- aProperties
object that contains for each domain object the appropriate file name
-
TLcdDAFIFIndependentATSRouteDecoder
public TLcdDAFIFIndependentATSRouteDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties) Creates a newTLcdDAFIFIndependentATSRouteDecoder
object. The user should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.- Parameters:
aDomainFactory
- the factory to be used to create the waypoints and the ATS routesaDAFIFProperties
- 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 waypoint model first. This waypoint model will be decoded using aSource. Then the decode method of theTLcdDAFIFATSRouteDecoder
class is called.- Specified by:
decode
in interfaceILcdModelDecoder
- Overrides:
decode
in classTLcdDAFIFATSRouteDecoder
- 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:
-