public class PastTrackSimple extends Object implements IPastTrack, Serializable
| Constructor and Description |
|---|
PastTrackSimple() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPosition(AisVesselPosition vesselPosition,
int minDist)
Add position to past track if it is more than minimum distance from last position
|
void |
cleanup(int ttl)
Remove points in past track older than ttl
|
List<PastTrackPoint> |
getPoints()
Get past track points
|
public void addPosition(AisVesselPosition vesselPosition, int minDist)
IPastTrackaddPosition in interface IPastTrackvesselPosition - the vessel positionminDist - the min distpublic void cleanup(int ttl)
IPastTrackcleanup in interface IPastTrackttl - the ttlpublic List<PastTrackPoint> getPoints()
IPastTrackgetPoints in interface IPastTrackCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.