public class TLcdASTERIXSacSicRecordFilter extends Object implements 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.
Constructor and Description |
---|
TLcdASTERIXSacSicRecordFilter()
Constructs 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 the
aInvert parameter. |
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
public TLcdASTERIXSacSicRecordFilter()
public TLcdASTERIXSacSicRecordFilter(boolean aInvert)
aInvert
parameter.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.public void addSacSic(int aSystemAreaCode, int aSystemIdentificationCode)
aNegate
property of this filter, ASTERIX records will be accepted or rejected based on the added
SAC/SIC combinations.aSystemAreaCode
- The System Area Code, as specified in the ASTERIX specification.aSystemIdentificationCode
- The System Identification Code, as specified in the ASTERIX specification.TLcdASTERIXSacSicRecordFilter(boolean)
public boolean accept(ILcdDataObject aASTERIXRecord)
ILcdASTERIXRecordFilter
Decide whether an ASTERIX record should be processed or ignored.
accept
in interface ILcdASTERIXRecordFilter
aASTERIXRecord
- The ILcdDataObject
that represents the ASTERIX record. Its type corresponds to
one of the UAP types in the TLcdASTERIXDataTypes
class. No references
should be kept to this object after this method has returned, as the same
object might be reused in subsequent calls.true
to process the record, false
to ignore it.