接口 TLLSentence
- 所有超级接口:
PositionSentence,Sentence
Sent by the Radar (ARPA / MARPA) and handled by the AIS Decoder in the same way as an AIS target
example (
$RATLL,01,3731.51052,N,02436.00000,E,TEST1,161617.88,T,*0C- 作者:
- Epameinondas Pantzopoulos
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明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.Get the status of the target.getTime()Get the time of day.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.voidsetStatus(TargetStatus status) Set the Status of the target.voidSet the time of day.从接口继承的方法 net.sf.marineapi.nmea.sentence.PositionSentence
getPosition, setPosition从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getNumber
int getNumber()Get the number assigned to this target by the radar.- 返回:
- Target number in the range 0 - 999.
- 抛出:
DataNotAvailableException- If the data is not available.
-
getName
String getName()Get the name of the target as assigned by the radar.- 返回:
- Name.
-
getTime
Time getTime()Get the time of day.- 返回:
- Time
-
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.
-
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.
-
setName
Set the name of the target.- 参数:
name- The name as a string, probably not too long...
-
setTime
Set the time of day.- 参数:
t- Time to set
-
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.
-