public class TLcdDAFIFIndependentATSRouteDecoder extends TLcdDAFIFATSRouteDecoder
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.
TLcdDAFIFATSRouteModelDescriptor
DAFIF_PROP_EXTENSION, fRecordCount
Constructor and Description |
---|
TLcdDAFIFIndependentATSRouteDecoder(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
TLcdDAFIFIndependentATSRouteDecoder(ALcdAISObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Deprecated.
|
TLcdDAFIFIndependentATSRouteDecoder(TLcdAISDataObjectFactory aDomainFactory)
Creates a new
TLcdDAFIFIndependentATSRouteDecoder object. |
TLcdDAFIFIndependentATSRouteDecoder(TLcdAISDataObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Creates a new
TLcdDAFIFIndependentATSRouteDecoder object. |
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 waypoint model first.
|
createModelDescriptor, createRequiredIndex, getDecodeFileName, getDisplayName, handleRecord, setATSRouteFeaturesToBeDecoded, setATSRouteSegmentFeaturesToBeDecoded, setRouteDefaultDisplayNameIndex, setRouteSegmentDefaultDisplayNameIndex, setWaypointsModel
cleanUp, setKeyFeatureNames
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
canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
@Deprecated public TLcdDAFIFIndependentATSRouteDecoder(ALcdAISObjectFactory aDomainFactory)
TLcdDAFIFIndependentATSRouteDecoder
object. The user
should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.aDomainFactory
- the factory to be used to create the waypoints and the ATS routespublic TLcdDAFIFIndependentATSRouteDecoder(TLcdAISDataObjectFactory aDomainFactory)
TLcdDAFIFIndependentATSRouteDecoder
object. The user
should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.aDomainFactory
- the factory to be used to create the waypoints and the ATS routes@Deprecated public TLcdDAFIFIndependentATSRouteDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentATSRouteDecoder
object. The user
should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.aDomainFactory
- the factory to be used to create the waypoints and the ATS routesaDAFIFProperties
- a Properties
object that contains for each domain object
the appropriate file namepublic TLcdDAFIFIndependentATSRouteDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentATSRouteDecoder
object. The user
should specify which domainFactory he or she wants to use to create the waypoints and the ATS routes.aDomainFactory
- the factory to be used to create the waypoints and the ATS routesaDAFIFProperties
- 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
TLcdDAFIFATSRouteDecoder
class is called.decode
in interface ILcdModelDecoder
decode
in class TLcdDAFIFATSRouteDecoder
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)