@NotThreadSafe public class AisPacketTags extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AisPacketTags.SourceType
The enum Source type.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SOURCE_BS_KEY
The constant SOURCE_BS_KEY.
|
static String |
SOURCE_COUNTRY_KEY
The constant SOURCE_COUNTRY_KEY.
|
static String |
SOURCE_ID_KEY
The constant SOURCE_ID_KEY.
|
static String |
SOURCE_TYPE_KEY
The constant SOURCE_TYPE_KEY.
|
| Constructor and Description |
|---|
AisPacketTags()
Instantiates a new Ais packet tags.
|
AisPacketTags(AisPacketTags t)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterMatch(AisPacketTags tagging)
Determine if given tagging match this tagging
|
CommentBlock |
getCommentBlock()
Make comment block with tags
|
CommentBlock |
getCommentBlock(CommentBlock cb)
Supplement given comment block with tags (overriding)
|
CommentBlock |
getCommentBlockPreserve(CommentBlock cb)
Supplement given comment block with tags (not overriding)
|
Integer |
getSourceBs()
Gets source bs.
|
dk.dma.enav.model.Country |
getSourceCountry()
Gets source country.
|
String |
getSourceId()
Gets source id.
|
AisPacketTags.SourceType |
getSourceType()
Gets source type.
|
Date |
getTimestamp()
Gets timestamp.
|
boolean |
isEmpty()
Determine if any tag is non null
|
AisPacketTags |
mergeMissing(AisPacketTags proposed)
Get new tagging with tags in proposed tagging not already in the current tag
|
void |
setSourceBs(Integer sourceBs)
Sets source bs.
|
void |
setSourceCountry(dk.dma.enav.model.Country sourceCountry)
Sets source country.
|
void |
setSourceId(String sourceId)
Sets source id.
|
void |
setSourceType(AisPacketTags.SourceType sourceType)
Sets source type.
|
void |
setTimestamp(Date timestamp)
Sets timestamp.
|
String |
toString() |
public static final String SOURCE_ID_KEY
public static final String SOURCE_BS_KEY
public static final String SOURCE_COUNTRY_KEY
public static final String SOURCE_TYPE_KEY
public AisPacketTags()
public AisPacketTags(AisPacketTags t)
t - the tpublic boolean isEmpty()
public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp - the timestamppublic String getSourceId()
public void setSourceId(String sourceId)
sourceId - the source idpublic Integer getSourceBs()
public void setSourceBs(Integer sourceBs)
sourceBs - the source bspublic dk.dma.enav.model.Country getSourceCountry()
public void setSourceCountry(dk.dma.enav.model.Country sourceCountry)
sourceCountry - the source countrypublic void setSourceType(AisPacketTags.SourceType sourceType)
sourceType - the source typepublic AisPacketTags.SourceType getSourceType()
public CommentBlock getCommentBlock()
public CommentBlock getCommentBlock(CommentBlock cb)
cb - the cbpublic CommentBlock getCommentBlockPreserve(CommentBlock cb)
cb - the cbpublic AisPacketTags mergeMissing(AisPacketTags proposed)
proposed - the proposedpublic boolean filterMatch(AisPacketTags tagging)
tagging - the taggingCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.