@NotThreadSafe public final class ScenarioTracker.Target extends Target implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
class |
ScenarioTracker.Target.PositionReport
The type Position report.
|
| Constructor and Description |
|---|
Target(int mmsi)
Instantiates a new Target.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCargoTypeAsString()
Gets cargo type as string.
|
String |
getDestination()
Gets destination.
|
int |
getImo()
Gets imo.
|
String |
getName()
Gets name.
|
ScenarioTracker.Target.PositionReport |
getPositionReportAt(Date atTime,
int maxAge)
Return position at at time atTime.
|
Set<ScenarioTracker.Target.PositionReport> |
getPositionReports()
Gets position reports.
|
String |
getShipTypeAsString()
Gets ship type as string.
|
ShipTypeCargo |
getShipTypeCargo()
Gets ship type cargo.
|
int |
getToBow()
Gets to bow.
|
int |
getToPort()
Gets to port.
|
int |
getToStarboard()
Gets to starboard.
|
int |
getToStern()
Gets to stern.
|
boolean |
hasPosition()
Has position boolean.
|
boolean |
isTagged(Object tag)
Is tagged boolean.
|
Date |
timeOfFirstPositionReport()
Time of first position report date.
|
Date |
timeOfLastPositionReport()
Time of last position report date.
|
public Target(int mmsi)
mmsi - the mmsipublic String getName()
public int getImo()
public String getDestination()
public ShipTypeCargo getShipTypeCargo()
public String getCargoTypeAsString()
public String getShipTypeAsString()
public int getToBow()
public int getToStern()
public int getToPort()
public int getToStarboard()
public boolean isTagged(Object tag)
tag - the tagpublic boolean hasPosition()
public Set<ScenarioTracker.Target.PositionReport> getPositionReports()
public Date timeOfFirstPositionReport()
public Date timeOfLastPositionReport()
public ScenarioTracker.Target.PositionReport getPositionReportAt(Date atTime, int maxAge)
atTime - The time at which to return a position report.maxAge - The max. no. of seconds to look back in history for a position report before estimating one.Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.