Package com.luciad.format.asterix
Class ALcdASTERIXDecoder
java.lang.Object
com.luciad.format.asterix.ALcdASTERIXDecoder
- Direct Known Subclasses:
TLcdASTERIXLiveDecoder
,TLcdASTERIXLiveModelDecoder
,TLcdASTERIXModelDecoder
Base class for both ASTERIX decoders:
TLcdASTERIXLiveDecoder
and
TLcdASTERIXModelDecoder
.
ASTERIX is the Eurocontrol standard for exchanging ATM surveillance data.
Surveillance data is classified into data categories. More information on the
ASTERIX standard and defined categories can be obtained from the
Eurocontrol website.
To learn which data categories are supported, please browse the subclasses
of ALcdASTERIXCategory
.
This base class contains the common part between the two actual decoders, and
allows to: - Limit the data categories that are
parsed, see
setCategories(ALcdASTERIXCategory[])
. Note that future versions of the Radar Connectors component might include additional supported data categories. Therefore upgrading to a new version might cause data to be parsed that was not parsed before. If one is only interested in one or more particular data categories, it is advised to set those on the decoder usingsetCategories(ALcdASTERIXCategory[])
. - Specify the transformation provider,
see
setTransformationProvider(ALcdASTERIXTransformationProvider)
. - Specify the scaling factor
provider, see
setScalingFactorProvider(ALcdASTERIXScalingFactorProvider)
. - Specify the reference provider,
see
setReferenceProvider(ALcdASTERIXReferenceProvider)
. - Specify the
record filter
that decides which ASTERIX records to process and which to ignore, seesetRecordFilter(ILcdASTERIXRecordFilter)
.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ASTERIX data categories handled by this decoder.Returns the record filter.Returns the currentALcdASTERIXReferenceProvider
.Returns the currentALcdASTERIXScalingFactorProvider
.Returns the currentALcdASTERIXTransformationProvider
.static boolean
Deprecated.This method has been deprecated.void
setCategories
(ALcdASTERIXCategory[] aCategories) Sets the ASTERIX data categories this decoder will handle.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setRecordFilter
(ILcdASTERIXRecordFilter aRecordFilter) Sets the record filter that will decide for each individual ASTERIX record whether it is processed or ignored.void
setReferenceProvider
(ALcdASTERIXReferenceProvider aReferenceProvider) Sets a newALcdASTERIXReferenceProvider
on this decoder.void
setScalingFactorProvider
(ALcdASTERIXScalingFactorProvider aScalingFactorProvider) Sets a newALcdASTERIXScalingFactorProvider
on this decoder.void
setTransformationProvider
(ALcdASTERIXTransformationProvider aTransformationProvider) Sets a newALcdASTERIXTransformationProvider
on this decoder.
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getTransformationProvider
Returns the currentALcdASTERIXTransformationProvider
.- Returns:
- The
ALcdASTERIXTransformationProvider
used during decoding.
-
setTransformationProvider
Sets a newALcdASTERIXTransformationProvider
on this decoder.- Parameters:
aTransformationProvider
- This newALcdASTERIXTransformationProvider
will be used for future decodes.
-
getScalingFactorProvider
Returns the currentALcdASTERIXScalingFactorProvider
.- Returns:
- The
ALcdASTERIXScalingFactorProvider
used during decoding.
-
setScalingFactorProvider
Sets a newALcdASTERIXScalingFactorProvider
on this decoder.- Parameters:
aScalingFactorProvider
- This newALcdASTERIXScalingFactorProvider
will be used for future decodes.
-
getReferenceProvider
Returns the currentALcdASTERIXReferenceProvider
.- Returns:
- the model reference provider used during decoding
-
setReferenceProvider
Sets a newALcdASTERIXReferenceProvider
on this decoder.- Parameters:
aReferenceProvider
- the model reference provider used during decoding
-
getCategories
Returns the ASTERIX data categories handled by this decoder.- Returns:
- the ASTERIX data categories handled by this decoder.
- See Also:
-
setCategories
Sets the ASTERIX data categories this decoder will handle. It allows to limit the categories that are processed to a well defined subset. Note thatALcdASTERIXCategory
instances must not be shared between different instances ofALcdASTERIXDecoder
.- Parameters:
aCategories
- The categories to handle.- See Also:
-
getRecordFilter
Returns the record filter. The filter set by default accepts all records.- Returns:
- The record filter. Never
null
. - See Also:
-
setRecordFilter
Sets the record filter that will decide for each individual ASTERIX record whether it is processed or ignored.
- Parameters:
aRecordFilter
- The record filter. Must not benull
.
-