public interface TTMSentence extends TimeSentence
Example:
$RATTM,11,11.4,13.6,T,7.0,20.0,T,0.0,0.0,N,,Q,,154125.82,A,*17
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
AcquisitionType |
getAcquisitionType()
Get the acquisition type of the target.
|
double |
getBearing()
Get the true bearing from the radar to the target.
|
double |
getCourse()
Get the course the target is maintaining.
|
double |
getDistance()
Get the distance from the radar to the target.
|
double |
getDistanceOfCPA()
Get the distance at the Closest Point of Approach (CPA).
|
String |
getName()
Get the name of the target as assigned by the radar.
|
int |
getNumber()
Get the number assigned to this target by the radar.
|
boolean |
getReference()
A target may be used to calculate own ship position.
|
double |
getSpeed()
Get the speed the target.
|
TargetStatus |
getStatus()
Get the status of the target.
|
double |
getTimeToCPA()
Get the time to the Closest Point of Approach (CPA).
|
Units |
getUnits()
Get the unit of measure used for distance and speeds.
|
void |
setAcquisitionType(AcquisitionType acquisitionType)
Set the acquisition type of the target.
|
void |
setBearing(double bearing)
Set the true bearing from the radar to the target.
|
void |
setCourse(double course)
Set the course of the target.
|
void |
setDistance(double distance)
Set the distance from the radar to the target.
|
void |
setDistanceOfCPA(double distance)
Set the distance at CPA.
|
void |
setName(String name)
Set the name of the target.
|
void |
setNumber(int number)
Set the number of the target.
|
void |
setReference(boolean isReference)
A target may be used to calculate own ship position.
|
void |
setSpeed(double speed)
Set the speed of the target.
|
void |
setStatus(TargetStatus status)
Set the Status of the target.
|
void |
setTimeToCPA(double minutes)
Set the time to CPA.
|
getTime, setTime
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
int getNumber()
DataNotAvailableException
- If the data is not available.double getDistance()
double getBearing()
double getSpeed()
double getCourse()
double getDistanceOfCPA()
double getTimeToCPA()
Units getUnits()
String getName()
TargetStatus getStatus()
boolean getReference()
AcquisitionType getAcquisitionType()
void setNumber(int number)
number
- The number in the range 0 to 99 inclusive.void setDistance(double distance)
distance
- Distance in nautical miles.void setBearing(double bearing)
bearing
- True bearing in degrees.void setSpeed(double speed)
speed
- Speed in kts (nautical miles per hour).void setCourse(double course)
course
- True course in degrees.void setDistanceOfCPA(double distance)
distance
- Distance in nautical milesvoid setTimeToCPA(double minutes)
minutes
- Time to CPA in minutes.void setName(String name)
name
- The name as a string, probably not too long...void setStatus(TargetStatus status)
status
- The statusgetStatus()
void setReference(boolean isReference)
isReference
- True if this target is used to calculate own ship position.void setAcquisitionType(AcquisitionType acquisitionType)
acquisitionType
- The acquisition type.getAcquisitionType()
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.