接口 TTMSentence

所有超级接口:
Sentence, TimeSentence

public interface TTMSentence extends 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
  • 方法详细资料

    • 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

      void setUnits(Units units)
      Set the units used for speed/distance
      参数:
      units - The units that the speed and distance values are in (K/N/S)
    • setName

      void setName(String name)
      Set the name of the target.
      参数:
      name - The name as a string, probably not too long...
    • setStatus

      void setStatus(TargetStatus status)
      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

      void setAcquisitionType(AcquisitionType acquisitionType)
      Set the acquisition type of the target.
      参数:
      acquisitionType - The acquisition type.
      另请参阅: