|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TTMSentence
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
Field Summary |
---|
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.TimeSentence |
---|
getTime, setTime |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |