public class AisPacketFilters extends AisPacketFiltersBase
| Constructor and Description |
|---|
AisPacketFilters() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<AisPacket> |
duplicateFilter(long windowSize)
Removes duplicates within the given time window
|
static Predicate<AisPacket> |
filterOnMessageCallsign(CompareToOperator operator,
String callsign)
Filter on message callsign predicate.
|
static Predicate<AisPacket> |
filterOnMessageCallsign(String... callsigns)
Filter on message callsign predicate.
|
static Predicate<AisPacket> |
filterOnMessageCallsignMatch(String pattern)
Filter on message callsign match predicate.
|
static Predicate<AisPacket> |
filterOnMessageCountry(dk.dma.enav.model.Country... countries)
Filter on message country predicate.
|
static Predicate<AisPacket> |
filterOnMessageCourseOverGround(CompareToOperator operator,
Float cog)
Filter on message course over ground predicate.
|
static Predicate<AisPacket> |
filterOnMessageDraught(CompareToOperator operator,
Float draught)
Filter on message draught predicate.
|
static Predicate<AisPacket> |
filterOnMessageId(CompareToOperator operator,
Integer id)
Filter on message id predicate.
|
static Predicate<AisPacket> |
filterOnMessageId(Integer... ids)
Filter on message id predicate.
|
static Predicate<AisPacket> |
filterOnMessageId(int min,
int max)
Filter on message id predicate.
|
static Predicate<AisPacket> |
filterOnMessageImo(CompareToOperator operator,
Integer imo)
Filter on message imo predicate.
|
static Predicate<AisPacket> |
filterOnMessageImo(Integer... imos)
Filter on message imo predicate.
|
static Predicate<AisPacket> |
filterOnMessageImo(int min,
int max)
Filter on message imo predicate.
|
static Predicate<AisPacket> |
filterOnMessageLatitude(CompareToOperator operator,
Float lat)
Filter on message latitude predicate.
|
static Predicate<AisPacket> |
filterOnMessageLatitude(float min,
float max)
Filter on message latitude predicate.
|
static Predicate<AisPacket> |
filterOnMessageLongitude(CompareToOperator operator,
Float lon)
Filter on message longitude predicate.
|
static Predicate<AisPacket> |
filterOnMessageLongitude(float min,
float max)
Filter on message longitude predicate.
|
static Predicate<AisPacket> |
filterOnMessageMmsi(CompareToOperator operator,
Integer mmsi)
Filter on message mmsi predicate.
|
static Predicate<AisPacket> |
filterOnMessageMmsi(Integer... mmsis)
Filter on message mmsi predicate.
|
static Predicate<AisPacket> |
filterOnMessageMmsi(int min,
int max)
Filter on message mmsi predicate.
|
static Predicate<AisPacket> |
filterOnMessageName(CompareToOperator operator,
Float name)
Filter on message name predicate.
|
static Predicate<AisPacket> |
filterOnMessageName(CompareToOperator operator,
Integer name)
Filter on message name predicate.
|
static Predicate<AisPacket> |
filterOnMessageName(CompareToOperator operator,
String name)
Filter on message name predicate.
|
static Predicate<AisPacket> |
filterOnMessageName(String... names)
Filter on message name predicate.
|
static Predicate<AisPacket> |
filterOnMessageNameMatch(String pattern)
Filter on message name match predicate.
|
static Predicate<AisPacket> |
filterOnMessageNavigationalStatus(CompareToOperator operator,
Integer navstatus)
Filter on message navigational status predicate.
|
static Predicate<AisPacket> |
filterOnMessageNavigationalStatus(Integer... navstats)
Filter on message navigational status predicate.
|
static Predicate<AisPacket> |
filterOnMessageNavigationalStatus(int min,
int max)
Filter on message navigational status predicate.
|
static Predicate<AisPacket> |
filterOnMessagePositionWithin(dk.dma.enav.model.geometry.Area area)
Filter on message to have known position inside given area.
|
protected static Predicate<AisPacket> |
filterOnMessageReceiveTime(CompareToOperator operator,
int calendarField,
int value)
Filter on a comparison to a value of the indicated calendarField (see java.util.Calendar).
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeDayOfMonth(Integer... days)
Filter on message receive time day of month predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeDayOfMonth(int min,
int max)
Filter on message receive time day of month predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeDayOfWeek(CompareToOperator operator,
Integer rhs)
Filter on message receive time day of week predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeDayOfWeek(Integer... days)
Filter on message receive time day of week predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeDayOfWeek(int min,
int max)
Filter on message receive time day of week predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeHour(Integer... hours)
Filter on message receive time hour predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeHour(int min,
int max)
Filter on message receive time hour predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeMinute(Integer... minutes)
Filter on message receive time minute predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeMinute(int min,
int max)
Filter on message receive time minute predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeMonth(CompareToOperator operator,
Integer rhs)
Filter on message receive time month predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeMonth(Integer... months)
Filter on message receive time month predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeMonth(int min,
int max)
Filter on message receive time month predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeYear(Integer... years)
Filter on message receive time year predicate.
|
static Predicate<AisPacket> |
filterOnMessageReceiveTimeYear(int min,
int max)
Filter on message receive time year predicate.
|
static Predicate<AisPacket> |
filterOnMessageShiptype(CompareToOperator operator,
Integer shiptype)
Filter on message shiptype predicate.
|
static Predicate<AisPacket> |
filterOnMessageShiptype(Integer... shiptypes)
Filter on message shiptype predicate.
|
static Predicate<AisPacket> |
filterOnMessageShiptype(int min,
int max)
Filter on message shiptype predicate.
|
static Predicate<AisPacket> |
filterOnMessageSpeedOverGround(CompareToOperator operator,
Float sog)
Filter on message speed over ground predicate.
|
static Predicate<AisPacket> |
filterOnMessageTrueHeading(CompareToOperator operator,
Integer hdg)
Filter on message true heading predicate.
|
static Predicate<AisPacket> |
filterOnMessageTrueHeading(Integer... hdgs)
Filter on message true heading predicate.
|
static Predicate<AisPacket> |
filterOnMessageTrueHeading(int min,
int max)
Filter on message true heading predicate.
|
static <T> Predicate<AisPacket> |
filterOnMessageType(Class<T> messageType)
Filter on message type predicate.
|
static <T> Predicate<AisPacket> |
filterOnMessageType(Class<T> messageType,
Predicate<T> predicate)
Filter on message type predicate.
|
static Predicate<AisPacket> |
filterOnMessageType(int... types)
Filter on message type predicate.
|
static Predicate<AisPacket> |
filterOnSourceBasestation(CompareToOperator operator,
Integer bs)
Filter on source basestation predicate.
|
static Predicate<AisPacket> |
filterOnSourceBasestation(Integer... ids)
Filter on source basestation predicate.
|
static Predicate<AisPacket> |
filterOnSourceBasestation(String... ids)
Returns a predicate that will filter packets based on the base station source tag.
|
static Predicate<AisPacket> |
filterOnSourceCountry(dk.dma.enav.model.Country... countries)
Returns a predicate that will filter packets based on the country of the source tag.
|
static Predicate<AisPacket> |
filterOnSourceId(String... ids)
Filter on source id predicate.
|
static Predicate<AisPacket> |
filterOnSourceRegion(String... regions)
Filter on source region predicate.
|
static Predicate<AisPacket> |
filterOnSourceType(AisPacketTags.SourceType... sourceType)
Filter on source type predicate.
|
static Predicate<AisPacket> |
filterOnTargetCountry(dk.dma.enav.model.Country... countries)
Filter on target country predicate.
|
static Predicate<AisPacket> |
filterRelaxedOnMessagePositionWithin(dk.dma.enav.model.geometry.Area area)
Block position messages outside of given area; let all other messages pass.
|
static Predicate<AisPacket> |
parseExpressionFilter(String filter)
Parse expression filter predicate.
|
static Predicate<AisPacket> |
parseSourceFilter(String filter)
Deprecated.
|
static Predicate<AisPacket> |
samplingFilter(Integer minDistanceInMeters,
Long minDurationInMS)
Sampling filter predicate.
|
static Predicate<AisPacket> |
targetSamplingFilter(Integer minDistance,
Long minDuration)
Similar to the
SamplingFilter except that it applies the sampling per MMSI target |
compare, compare, compare, inRange, inRange, matchesGlob, preprocessAisString, preprocessExpressionString, preprocessExpressionStringspublic static <T> Predicate<AisPacket> filterOnMessageType(Class<T> messageType, Predicate<T> predicate)
T - the type parametermessageType - the message typepredicate - the predicatepublic static <T> Predicate<AisPacket> filterOnMessageType(Class<T> messageType)
T - the type parametermessageType - the message typepublic static Predicate<AisPacket> filterOnSourceBasestation(Integer... ids)
ids - the idspublic static Predicate<AisPacket> filterOnSourceBasestation(String... ids)
ids - the id of the base stations for which packets should be acceptedpublic static Predicate<AisPacket> filterOnSourceCountry(dk.dma.enav.model.Country... countries)
countries - the countries for which packets should be acceptedpublic static Predicate<AisPacket> filterOnSourceId(String... ids)
ids - the idspublic static Predicate<AisPacket> filterOnSourceRegion(String... regions)
regions - the regionspublic static Predicate<AisPacket> filterOnSourceType(AisPacketTags.SourceType... sourceType)
sourceType - the source typepublic static Predicate<AisPacket> filterOnMessagePositionWithin(dk.dma.enav.model.geometry.Area area)
area - The area that the position must reside inside.public static Predicate<AisPacket> filterRelaxedOnMessagePositionWithin(dk.dma.enav.model.geometry.Area area)
area - The area that the position messages must reside inside.public static Predicate<AisPacket> filterOnSourceBasestation(CompareToOperator operator, Integer bs)
operator - the operatorbs - the bsprotected static Predicate<AisPacket> filterOnMessageReceiveTime(CompareToOperator operator, int calendarField, int value)
operator - the operatorcalendarField - the calendar fieldvalue - the valuepublic static Predicate<AisPacket> filterOnMessageReceiveTimeMonth(CompareToOperator operator, Integer rhs)
operator - the operatorrhs - the rhspublic static Predicate<AisPacket> filterOnMessageReceiveTimeDayOfWeek(CompareToOperator operator, Integer rhs)
operator - the operatorrhs - the rhspublic static Predicate<AisPacket> filterOnMessageReceiveTimeYear(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeYear(Integer... years)
years - the yearspublic static Predicate<AisPacket> filterOnMessageReceiveTimeMonth(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeMonth(Integer... months)
months - the monthspublic static Predicate<AisPacket> filterOnMessageReceiveTimeDayOfMonth(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeDayOfMonth(Integer... days)
days - the dayspublic static Predicate<AisPacket> filterOnMessageReceiveTimeDayOfWeek(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeDayOfWeek(Integer... days)
days - the dayspublic static Predicate<AisPacket> filterOnMessageReceiveTimeHour(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeHour(Integer... hours)
hours - the hourspublic static Predicate<AisPacket> filterOnMessageReceiveTimeMinute(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageReceiveTimeMinute(Integer... minutes)
minutes - the minutespublic static Predicate<AisPacket> filterOnMessageId(CompareToOperator operator, Integer id)
operator - the operatorid - the idpublic static Predicate<AisPacket> filterOnMessageMmsi(CompareToOperator operator, Integer mmsi)
operator - the operatormmsi - the mmsipublic static Predicate<AisPacket> filterOnMessageImo(CompareToOperator operator, Integer imo)
operator - the operatorimo - the imopublic static Predicate<AisPacket> filterOnMessageShiptype(CompareToOperator operator, Integer shiptype)
operator - the operatorshiptype - the shiptypepublic static Predicate<AisPacket> filterOnMessageNavigationalStatus(CompareToOperator operator, Integer navstatus)
operator - the operatornavstatus - the navstatuspublic static Predicate<AisPacket> filterOnMessageName(CompareToOperator operator, Float name)
operator - the operatorname - the namepublic static Predicate<AisPacket> filterOnMessageName(CompareToOperator operator, Integer name)
operator - the operatorname - the namepublic static Predicate<AisPacket> filterOnMessageName(CompareToOperator operator, String name)
operator - the operatorname - the namepublic static Predicate<AisPacket> filterOnMessageNameMatch(String pattern)
pattern - the patternpublic static Predicate<AisPacket> filterOnMessageCallsign(CompareToOperator operator, String callsign)
operator - the operatorcallsign - the callsignpublic static Predicate<AisPacket> filterOnMessageCallsignMatch(String pattern)
pattern - the patternpublic static Predicate<AisPacket> filterOnMessageSpeedOverGround(CompareToOperator operator, Float sog)
operator - the operatorsog - the sogpublic static Predicate<AisPacket> filterOnMessageCourseOverGround(CompareToOperator operator, Float cog)
operator - the operatorcog - the cogpublic static Predicate<AisPacket> filterOnMessageTrueHeading(CompareToOperator operator, Integer hdg)
operator - the operatorhdg - the hdgpublic static Predicate<AisPacket> filterOnMessageLongitude(CompareToOperator operator, Float lon)
operator - the operatorlon - the lonpublic static Predicate<AisPacket> filterOnMessageLatitude(CompareToOperator operator, Float lat)
operator - the operatorlat - the latpublic static Predicate<AisPacket> filterOnMessageDraught(CompareToOperator operator, Float draught)
operator - the operatordraught - the draughtpublic static Predicate<AisPacket> filterOnMessageId(Integer... ids)
ids - the idspublic static Predicate<AisPacket> filterOnMessageMmsi(Integer... mmsis)
mmsis - the mmsispublic static Predicate<AisPacket> filterOnMessageImo(Integer... imos)
imos - the imospublic static Predicate<AisPacket> filterOnMessageShiptype(Integer... shiptypes)
shiptypes - the shiptypespublic static Predicate<AisPacket> filterOnMessageNavigationalStatus(Integer... navstats)
navstats - the navstatspublic static Predicate<AisPacket> filterOnMessageName(String... names)
names - the namespublic static Predicate<AisPacket> filterOnMessageCallsign(String... callsigns)
callsigns - the callsignspublic static Predicate<AisPacket> filterOnMessageTrueHeading(Integer... hdgs)
hdgs - the hdgspublic static Predicate<AisPacket> filterOnMessageId(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageMmsi(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageImo(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageShiptype(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageNavigationalStatus(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageTrueHeading(int min, int max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageLatitude(float min, float max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageLongitude(float min, float max)
min - the minmax - the maxpublic static Predicate<AisPacket> filterOnMessageType(int... types)
types - the typespublic static Predicate<AisPacket> filterOnMessageCountry(dk.dma.enav.model.Country... countries)
countries - the countriespublic static Predicate<AisPacket> filterOnTargetCountry(dk.dma.enav.model.Country... countries)
countries - the countriespublic static Predicate<AisPacket> samplingFilter(Integer minDistanceInMeters, Long minDurationInMS)
minDistanceInMeters - the min distance in metersminDurationInMS - the min duration in ms@Deprecated public static Predicate<AisPacket> parseSourceFilter(String filter)
filter - the filterpublic static Predicate<AisPacket> parseExpressionFilter(String filter)
filter - the filterpublic static Predicate<AisPacket> targetSamplingFilter(Integer minDistance, Long minDuration)
SamplingFilter except that it applies the sampling per MMSI targetminDistance - the minimum distance between two packets per targetminDuration - the minimum time in ms between two packets per targetCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.