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 filterthat 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 booleanDeprecated.This method has been deprecated.voidsetCategories(ALcdASTERIXCategory[] aCategories) Sets the ASTERIX data categories this decoder will handle.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetRecordFilter(ILcdASTERIXRecordFilter aRecordFilter) Sets the record filter that will decide for each individual ASTERIX record whether it is processed or ignored.voidsetReferenceProvider(ALcdASTERIXReferenceProvider aReferenceProvider) Sets a newALcdASTERIXReferenceProvideron this decoder.voidsetScalingFactorProvider(ALcdASTERIXScalingFactorProvider aScalingFactorProvider) Sets a newALcdASTERIXScalingFactorProvideron this decoder.voidsetTransformationProvider(ALcdASTERIXTransformationProvider aTransformationProvider) Sets a newALcdASTERIXTransformationProvideron 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 istruethen 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.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getTransformationProvider
Returns the currentALcdASTERIXTransformationProvider.- Returns:
- The
ALcdASTERIXTransformationProviderused during decoding.
-
setTransformationProvider
Sets a newALcdASTERIXTransformationProvideron this decoder.- Parameters:
aTransformationProvider- This newALcdASTERIXTransformationProviderwill be used for future decodes.
-
getScalingFactorProvider
Returns the currentALcdASTERIXScalingFactorProvider.- Returns:
- The
ALcdASTERIXScalingFactorProviderused during decoding.
-
setScalingFactorProvider
Sets a newALcdASTERIXScalingFactorProvideron this decoder.- Parameters:
aScalingFactorProvider- This newALcdASTERIXScalingFactorProviderwill be used for future decodes.
-
getReferenceProvider
Returns the currentALcdASTERIXReferenceProvider.- Returns:
- the model reference provider used during decoding
-
setReferenceProvider
Sets a newALcdASTERIXReferenceProvideron 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 thatALcdASTERIXCategoryinstances 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.
-