Class TLcdDAFIFTPrecisionApproachPathDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable
,ILcdModelDecoder
ILcdModelDecoder
that decodes DAFIFT Precision Approach Path Points from the
specified source directory. The decoded models have as model descriptor an instance of
TLcdDAFIFPrecisionApproachPathModelDescriptor
.
The objects in decoded models are based on the AIS domain objects available in com.luciad.ais.model
,
which all implement ILcdDataObject
. This interface provides a generic and
format-independent way of accessing the type and properties (features) of a domain object.
For this decoder, the type of the decoded objects is TLcdDAFIFTDataTypes.PrecisionApproachPath
,
which can also be retrieved through ILcdDataObject.getDataType()
. Each decoded Precision Approach Path object
has a landing threshold point (LTP) and a flight path alignment point (FPAP).
The available properties of the Precision Approach Path are defined in
TLcdDAFIFTPrecisionApproachPathDataProperties
.
The values for these properties can be retrieved through ILcdDataObject.getValue(com.luciad.datamodel.TLcdDataProperty)
.
Next to ILcdDataObject
, the objects in decoded models also implement ILcdFeatured
,
the former interface to access the properties (features) of a domain object.
- AIRPORT IDENTIFICATION:
ILcdDAFIFPrecisionApproachPathFeature.AIRPORT_IDENTIFICATION
- TERMINAL IDENTIFIER:
ILcdDAFIFPrecisionApproachPathFeature.TERMINAL_IDENTIFIER
- APPROACH IDENTIFIER:
ILcdFinalApproachPathFeature.APPROACH_IDENTIFIER
- HOST COUNTRY IDENTIFIER:
ILcdDAFIFPrecisionApproachPathFeature.HOST_COUNTRY_IDENTIFIER
- RUNWAY IDENTIFIER:
ILcdFinalApproachPathFeature.RUNWAY_IDENTIFIER
- OPERATION TYPE:
ILcdFinalApproachPathFeature.OPERATION_TYPE
- APPROACH INDICATOR:
ILcdFinalApproachPathFeature.APPROACH_INDICATOR
- SBAS SERVICE PROVIDER IDENTIFIER:
ILcdFinalApproachPathFeature.SBAS_SERVICE_PROVIDER_IDENTIFIER
- REFERENCE PATH DATA SELECTOR:
ILcdFinalApproachPathFeature.REFERENCE_PATH_DATA_SELECTOR
- REFERENCE PATH IDENTIFIER:
ILcdFinalApproachPathFeature.REFERENCE_PATH_IDENTIFIER
- APPROACH PERFORMANCE DESIGNATOR:
ILcdFinalApproachPathFeature.APPROACH_PERFORMANCE_DESIGNATOR
- THRESHOLD CROSSING HEIGHT:
ILcdFinalApproachPathFeature.THRESHOLD_CROSSING_HEIGHT
- GLIDE PATH ANGLE:
ILcdFinalApproachPathFeature.GLIDE_PATH_ANGLE
- COURSE WIDTH AT THRESHOLD:
ILcdFinalApproachPathFeature.COURSE_WIDTH_AT_THRESHOLD
- LENGTH OFFSET:
ILcdFinalApproachPathFeature.LENGTH_OFFSET
- CYCLE DATE:
ILcdFinalApproachPathFeature.CYCLE_DATE
- GNSS CHANNEL:
ILcdFinalApproachPathFeature.GNSS_CHANNEL
- HORIZONTAL ALERT LIMIT:
ILcdFinalApproachPathFeature.HORIZONTAL_ALERT_LIMIT
- VERTICAL ALERT LIMIT:
ILcdFinalApproachPathFeature.VERTICAL_ALERT_LIMIT
- APPROACH TYPE IDENTIFIER:
ILcdFinalApproachPathFeature.APPROACH_TYPE_IDENTIFIER
- HELICOPTER PROCEDURE COURSE:
ILcdFinalApproachPathFeature.HELICOPTER_PROCEDURE_COURSE
All DAFIFT decoders rely on a specific set of key features that uniquely define an object. This set of features must always be included in the set of features to be decoded. For a precision approach path, the key features are:
- ILcdDAFIFPrecisionApproachPathFeature.AIRPORT_IDENTIFICATION
- ILcdDAFIFPrecisionApproachPathFeature.TERMINAL_IDENTIFIER
- Since:
- 2023.1
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newTLcdDAFIFTPrecisionApproachPathDecoder
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeSource
(String aSource) Returnstrue
if the specified source is: A file with the specific name corresponding to the object type of this decoder A directory containing such a file A.toc
file in a directory, pointing to such a fileReturns a model containing the domain objects read from the given source file.Returns the factory that is used to create domain objects.Returns a short, displayable name for the format that is decoded by thisILcdModelDecoder
.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.int
Returns the number of error reports to be added to the error message.Returns the record filter that is currently used.String[]
Returns the array ofString
objects containing the names of the features that will be used as a unique key to insert objects into the model.void
setDataObjectFactory
(TLcdAISDataObjectFactory aFactory) Specifies the data factory.void
setDomainFactory
(ALcdAISObjectFactory aDomainFactory) Deprecated.void
setInputStreamFactory
(ILcdInputStreamFactory aInputStreamFactory) Sets the input stream factory that will be used for creating the input streams for the given source names.void
setMaxNumberOfErrorReports
(int aMaxNumberOfErrorReports) Specifies a value for the maximum number of error reports.void
setRecordFilter
(ILcdDAFIFTRecordFilter aRecordFilter) Specifies a filter to be used while creating the model.Methods inherited from class com.luciad.format.dafift.decoder.ALcdDAFIFTModelDecoder
getDecodingBounds, getModelFilter, setDecodingBounds, setModelFilter
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, canDecodeSource, decodeModelMetadata, decodeModelMetadata, decodeSource, discoverDataSources
-
Constructor Details
-
TLcdDAFIFTPrecisionApproachPathDecoder
Constructs a newTLcdDAFIFTPrecisionApproachPathDecoder
object. The user should specify which object factory needs to be used to create the precision approach path.- Parameters:
aFactory
- The factory to be used to create the model objects.
-
-
Method Details
-
getDisplayName
Description copied from interface:ILcdModelDecoder
Returns a short, displayable name for the format that is decoded by thisILcdModelDecoder
.- Specified by:
getDisplayName
in interfaceILcdModelDecoder
- Overrides:
getDisplayName
in classALcdDAFIFTModelDecoder
- Returns:
- the displayable name of this
ILcdModelDecoder
.
-
decode
Returns a model containing the domain objects read from the given source file. The model will be build by looping through the records found in the source file. Each record that passes the record filter (getRecordFilter()
) will be decoded. A decoded record needs to pass two additional filters (a model filtergetModelFilter()
and a bounds filtergetDecodingBounds()
) before it can be added to the model. Furthermore, an error message will be initialized and filled with reports about errors occurred during the decode process. By default, all reports will be added into the error message. The methodsetMaxNumberOfErrorReports(int)
can be used to adjust this setting.- 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.- See Also:
-
getUniqueKeyFeatureNames
Returns the array ofString
objects containing the names of the features that will be used as a unique key to insert objects into the model.- Returns:
- the array of
String
objects containing the names of the features that will be used as a unique key to insert objects into the model.
-
canDecodeSource
Returnstrue
if the specified source is:- A file with the specific name corresponding to the object type of this decoder
- A directory containing such a file
- A
.toc
file in a directory, pointing to such a file
- 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
-
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:
getInputStreamFactory
in 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:
setInputStreamFactory
in 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
String
object containing the errors occurred during the last decode process.
-
getDataObjectFactory()