@ThreadSafe public class DuplicateFilter extends MessageFilterBase
The doublet filter works by only allowing the same message through once in a time window. The six bit string of the message is used as unique identifier.
| Modifier and Type | Class and Description |
|---|---|
class |
DuplicateFilter.DoubletEntry
An entry class with sixbit string and reception date
|
| Constructor and Description |
|---|
DuplicateFilter()
Instantiates a new Duplicate filter.
|
DuplicateFilter(long windowSize)
Constructor given window size
|
| Modifier and Type | Method and Description |
|---|---|
long |
getWindowSize()
Gets window size.
|
boolean |
rejectedByFilter(AisMessage message)
Rejected by filter boolean.
|
void |
setWindowSize(long windowSize)
Sets window size.
|
rejectedByFilterpublic DuplicateFilter()
public DuplicateFilter(long windowSize)
windowSize - the window sizepublic boolean rejectedByFilter(AisMessage message)
IMessageFiltermessage - the messagepublic long getWindowSize()
public void setWindowSize(long windowSize)
windowSize - the window sizeCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.