@ThreadSafe public class ReplayDuplicateFilter extends Object implements IPacketFilter
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 |
ReplayDuplicateFilter.DoubletEntry
An entry class with sixbit string and reception date
|
| Constructor and Description |
|---|
ReplayDuplicateFilter()
Instantiates a new Replay duplicate filter.
|
ReplayDuplicateFilter(long windowSize)
Constructor given window size
|
| Modifier and Type | Method and Description |
|---|---|
long |
getWindowSize()
Gets window size.
|
boolean |
rejectedByFilter(AisPacket packet)
Rejected by filter boolean.
|
void |
setWindowSize(long windowSize)
Sets window size.
|
public ReplayDuplicateFilter()
public ReplayDuplicateFilter(long windowSize)
windowSize - the window sizepublic boolean rejectedByFilter(AisPacket packet)
IPacketFilterrejectedByFilter in interface IPacketFilterpacket - the packetpublic long getWindowSize()
public void setWindowSize(long windowSize)
windowSize - the window sizeCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.