接口 TTMSentence
- 所有超级接口:
Sentence,TimeSentence
Tracked Target Message. Range and bearing from radar to target. Course and
speed of target. One message per target.
Example:
$RATTM,11,11.4,13.6,T,7.0,20.0,T,0.0,0.0,N,,Q,,154125.82,A,*17
- 作者:
- Johan Bergkvist, Joshua Sweaney
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明Get the acquisition type of the target.doubleGet the bearing from the radar to the target.charGet the bearing reference.doubleGet the course the target is maintaining.charGet the course reference.doubleGet the distance from the radar to the target.doubleGet the distance at the Closest Point of Approach (CPA).getName()Get the name of the target as assigned by the radar.intGet the number assigned to this target by the radar.booleanA target may be used to calculate own ship position.doublegetSpeed()Get the speed the target.Get the status of the target.doubleGet the time to the Closest Point of Approach (CPA).getUnits()Get the unit of measure used for distance and speeds.booleanTells if the bearing from radar to target is true or relative.booleanTells if the target course is true or relative.voidsetAcquisitionType(AcquisitionType acquisitionType) Set the acquisition type of the target.voidsetDistance(double distance) Set the distance from the radar to the target.voidsetDistanceOfCPA(double distance) Set the distance at CPA.voidSet the name of the target.voidsetNumber(int number) Set the number of the target.voidsetReference(boolean isReference) A target may be used to calculate own ship position.voidsetRelativeBearing(double bearing) Set the relative bearing from the radar to the target.voidsetRelativeCourse(double course) Set the relative course of the target.voidsetSpeed(double speed) Set the speed of the target.voidsetStatus(TargetStatus status) Set the Status of the target.voidsetTimeToCPA(double minutes) Set the time to CPA.voidsetTrueBearing(double bearing) Set the true bearing from the radar to the target.voidsetTrueCourse(double course) Set the true course of the target.voidSet the units used for speed/distance从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString从接口继承的方法 net.sf.marineapi.nmea.sentence.TimeSentence
getTime, setTime
-
方法详细资料
-
getNumber
int getNumber()Get the number assigned to this target by the radar. The TTM sentence mandate a two digit number, so valid numbers are 0 to 99 inclusive.- 返回:
- Target number in the range 0 - 99.
- 抛出:
DataNotAvailableException- If the data is not available.
-
getDistance
double getDistance()Get the distance from the radar to the target.- 返回:
- Distance to target in nautical miles.
-
getBearing
double getBearing()Get the bearing from the radar to the target.- 返回:
- True bearing in degrees.
-
getBearingTrueRel
char getBearingTrueRel()Get the bearing reference.- 返回:
- True or Relative (T or R).
-
getSpeed
double getSpeed()Get the speed the target.- 返回:
- Speed in kts (nautical miles per hour).
-
getCourse
double getCourse()Get the course the target is maintaining.- 返回:
- True course in degrees.
-
getCourseTrueRel
char getCourseTrueRel()Get the course reference.- 返回:
- True or Relative (T or R).
-
getDistanceOfCPA
double getDistanceOfCPA()Get the distance at the Closest Point of Approach (CPA).- 返回:
- The distance in nautical miles.
-
getTimeToCPA
double getTimeToCPA()Get the time to the Closest Point of Approach (CPA).- 返回:
- The time in minutes.
-
getUnits
Units getUnits()Get the unit of measure used for distance and speeds.- 返回:
- The unit of measure.
-
getName
String getName()Get the name of the target as assigned by the radar.- 返回:
- Name.
-
getStatus
TargetStatus getStatus()Get the status of the target. A target is first in state QUERY while the radar works out firm data of the target. At first the calculated course and speed are rough and varies a lot; with time they settle at which point the target becomes TRACKING. A target no longer detected becomes LOST before TTM sentences will not be sent at all for the target.- 返回:
- The state (QUERY, TRACKING, LOST)
-
getReference
boolean getReference()A target may be used to calculate own ship position.- 返回:
- True if this target is used to calculate own ship position.
-
getAcquisitionType
AcquisitionType getAcquisitionType()Get the acquisition type of the target. AUTO indicates that the radar initiated the target. MANUAL indicates that the radar operator initiated the target in the radar. REPORTED indicates that the target came from another source. TODO: Is that true?- 返回:
- The acquisition type (AUTO, MANUAL, REPORTED)
-
setNumber
void setNumber(int number) Set the number of the target. Uniquely identifies the target.- 参数:
number- The number in the range 0 to 99 inclusive.
-
setDistance
void setDistance(double distance) Set the distance from the radar to the target.- 参数:
distance- Distance in nautical miles.
-
setTrueBearing
void setTrueBearing(double bearing) Set the true bearing from the radar to the target.- 参数:
bearing- True bearing in degrees.
-
setRelativeBearing
void setRelativeBearing(double bearing) Set the relative bearing from the radar to the target.- 参数:
bearing- Relative bearing in degrees.
-
isTrueBearing
boolean isTrueBearing()Tells if the bearing from radar to target is true or relative.- 返回:
- true when true bearing, otherwise false (relative)
-
setSpeed
void setSpeed(double speed) Set the speed of the target.- 参数:
speed- Speed in kts (nautical miles per hour).
-
setTrueCourse
void setTrueCourse(double course) Set the true course of the target.- 参数:
course- True course in degrees.
-
setRelativeCourse
void setRelativeCourse(double course) Set the relative course of the target.- 参数:
course- Relative course in degrees.- 另请参阅:
-
isTrueCourse
boolean isTrueCourse()Tells if the target course is true or relative.- 返回:
- true if course is true, otherwise false (=relative)
-
setDistanceOfCPA
void setDistanceOfCPA(double distance) Set the distance at CPA.- 参数:
distance- Distance in nautical miles
-
setTimeToCPA
void setTimeToCPA(double minutes) Set the time to CPA.- 参数:
minutes- Time to CPA in minutes.
-
setUnits
Set the units used for speed/distance- 参数:
units- The units that the speed and distance values are in (K/N/S)
-
setName
Set the name of the target.- 参数:
name- The name as a string, probably not too long...
-
setStatus
Set the Status of the target.- 参数:
status- The status- 另请参阅:
-
setReference
void setReference(boolean isReference) A target may be used to calculate own ship position.- 参数:
isReference- True if this target is used to calculate own ship position.
-
setAcquisitionType
Set the acquisition type of the target.- 参数:
acquisitionType- The acquisition type.- 另请参阅:
-