public class TLcdDAFIFIndependentProcedureDecoder extends TLcdDAFIFProcedureDecoder
TLcdDAFIFProcedureDecoder
class
can be used to produce a model without having to specify an aerodrome, a heliport,
a runway, a waypoint, a navaid or an ILS model first. Decoded models have as model descriptor
an instance of TLcdDAFIFProcedureTrajectoryModelDescriptor
.
The TLcdDAFIFIndependentProcedureDecoder
will decode
these models himself.
To decode the models necessary for creating terminal procedures, the TLcdDAFIFIndependentProcedureDecoder
will look for the corresponding source files in the same directory as the source file to be decoded.
If the source files aren't found in this directory, or the objects read from a source file aren't satisfactory
to build the terminal procedures, exceptions will occur during the decode process.
DAFIF_PROP_EXTENSION, fRecordCount
Constructor and Description |
---|
TLcdDAFIFIndependentProcedureDecoder(ALcdAISObjectFactory aDomainFactory)
Deprecated.
|
TLcdDAFIFIndependentProcedureDecoder(ALcdAISObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Deprecated.
|
TLcdDAFIFIndependentProcedureDecoder(TLcdAISDataObjectFactory aDomainFactory)
Creates a new
TLcdDAFIFIndependentProcedureDecoder object. |
TLcdDAFIFIndependentProcedureDecoder(TLcdAISDataObjectFactory aDomainFactory,
Properties aDAFIFProperties)
Creates a new
TLcdDAFIFIndependentProcedureDecoder 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 all models necessary to create the procedures first.
|
addErrorReport, createModelDescriptor, createRequiredIndices, createRequiredIndices, getDecodeFileName, getDisplayName, getMaxNumberOfErrorReports, handleRecord, removeRequiredIndices, setAirportModel, setHeliportModel, setILSModel, setMaxNumberOfErrorReports, setNavaidModel, setProcedureDefaultDisplayNameIndex, setProcedureFeaturesToBeDecoded, setRunwayModel, setWaypointModel
cleanUp, setKeyFeatureNames
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 TLcdDAFIFIndependentProcedureDecoder(ALcdAISObjectFactory aDomainFactory)
TLcdDAFIFIndependentProcedureDecoder
object. The user
should specify which domainFactory he or she wants to use to create the aerodromes,
the heliports, the ILS objects, the navaids, the runways, the waypoints and the procedures.aDomainFactory
- the factory to be used to create the model objectspublic TLcdDAFIFIndependentProcedureDecoder(TLcdAISDataObjectFactory aDomainFactory)
TLcdDAFIFIndependentProcedureDecoder
object. The user
should specify which domainFactory he or she wants to use to create the aerodromes,
the heliports, the ILS objects, the navaids, the runways, the waypoints and the procedures.aDomainFactory
- the factory to be used to create the model objects@Deprecated public TLcdDAFIFIndependentProcedureDecoder(ALcdAISObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentProcedureDecoder
object. The user
should specify which domainFactory he or she wants to use to create the aerodromes,
the heliports, the ILS objects, the navaids, the runways, the waypoints and the procedures.aDomainFactory
- the factory to be used to create the model objectsaDAFIFProperties
- a Properties
object that contains for each domain object
the appropriate file namepublic TLcdDAFIFIndependentProcedureDecoder(TLcdAISDataObjectFactory aDomainFactory, Properties aDAFIFProperties)
TLcdDAFIFIndependentProcedureDecoder
object. The user
should specify which domainFactory he or she wants to use to create the aerodromes,
the heliports, the ILS objects, the navaids, the runways, the waypoints and the procedures.aDomainFactory
- the factory to be used to create the model objectsaDAFIFProperties
- 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
TLcdDAFIFProcedureDecoder
class is called.decode
in interface ILcdModelDecoder
decode
in class TLcdDAFIFProcedureDecoder
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)