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
ConstructorsConstructorDescriptionConstructs 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 theaInvertparameter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(ILcdDataObject aASTERIXRecord) Decide whether an ASTERIX record should be processed or ignored.voidaddSacSic(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 theaInvertparameter.- Parameters:
aInvert-trueto reject all records coming from a sac/sic added to this filter,falseto 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 theaNegateproperty 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:ILcdASTERIXRecordFilterDecide whether an ASTERIX record should be processed or ignored.
- Specified by:
acceptin interfaceILcdASTERIXRecordFilter- Parameters:
aASTERIXRecord- TheILcdDataObjectthat represents the ASTERIX record. Its type corresponds to one of the UAP types in theTLcdASTERIXDataTypesclass. No references should be kept to this object after this method has returned, as the same object might be reused in subsequent calls.- Returns:
trueto process the record,falseto ignore it.
-