Package com.luciad.format.asterix
Class TLcdASTERIXSacSicRecordFilter
java.lang.Object
com.luciad.format.asterix.TLcdASTERIXSacSicRecordFilter
- All Implemented Interfaces:
ILcdASTERIXRecordFilter
ILcdASTERIXRecordFilter
implementation that allows you to filter the ASTERIX
records by data source (for instance, by the radar system that picked them up). The data source is defined
by a SAC/SIC code (System Area Code / System Identification Code).
When multiple radar systems report on the same tracks in turn, a zig-zag effect might show up because of slight deviations in either radar system. To avoid this, filter out reports of either radar system using this filter.
- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionConstructs a filter which accepts only records coming from an added sac/sic.TLcdASTERIXSacSicRecordFilter
(boolean aInvert) Constructs a new record filter to accept or reject records, depending on theaInvert
parameter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(ILcdDataObject aASTERIXRecord) Decide whether an ASTERIX record should be processed or ignored.void
addSacSic
(int aSystemAreaCode, int aSystemIdentificationCode) Add the specified combination of 'System Area Code' / 'System Identification Code' to this filter.
-
Constructor Details
-
TLcdASTERIXSacSicRecordFilter
public TLcdASTERIXSacSicRecordFilter()Constructs a filter which accepts only records coming from an added sac/sic. -
TLcdASTERIXSacSicRecordFilter
public TLcdASTERIXSacSicRecordFilter(boolean aInvert) Constructs a new record filter to accept or reject records, depending on theaInvert
parameter.- Parameters:
aInvert
-true
to reject all records coming from a sac/sic added to this filter,false
to accept only records coming from an added sac/sic.
-
-
Method Details
-
addSacSic
public void addSacSic(int aSystemAreaCode, int aSystemIdentificationCode) Add the specified combination of 'System Area Code' / 'System Identification Code' to this filter. Depending on theaNegate
property of this filter, ASTERIX records will be accepted or rejected based on the added SAC/SIC combinations.- Parameters:
aSystemAreaCode
- The System Area Code, as specified in the ASTERIX specification.aSystemIdentificationCode
- The System Identification Code, as specified in the ASTERIX specification.- See Also:
-
accept
Description copied from interface:ILcdASTERIXRecordFilter
Decide whether an ASTERIX record should be processed or ignored.
- Specified by:
accept
in interfaceILcdASTERIXRecordFilter
- Parameters:
aASTERIXRecord
- TheILcdDataObject
that represents the ASTERIX record. Its type corresponds to one of the UAP types in theTLcdASTERIXDataTypes
class. No references should be kept to this object after this method has returned, as the same object might be reused in subsequent calls.- Returns:
true
to process the record,false
to ignore it.
-