接口 OSDSentence


public interface OSDSentence
Own ship data.
Gives the movement vector of the ship.
Includes (in this order): Heading (degrees true), Heading status DataStatus
Vessel course (degrees true), Course reference ReferenceSystem,
Vessel speed, Speed reference (ReferenceSystem), Vessel set (degrees true), vessel drift,
Speed units Units
Example:
$RAOSD,35.1,A,36.0,P,10.2,P,15.3,0.1,N*41<CR><LF>
作者:
Joshua Sweaney
  • 方法详细资料

    • getHeading

      double getHeading()
      Get ownship heading
      返回:
      Double ownship heading
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getHeadingStatus

      DataStatus getHeadingStatus()
      Get the status of heading data
      返回:
      DataStatus the status
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getCourse

      double getCourse()
      Get the course of ownship
      返回:
      Double the course
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getCourseReference

      ReferenceSystem getCourseReference()
      Get the reference system used to calculate course
      返回:
      ReferenceSystem the reference
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getSpeed

      double getSpeed()
      Get ownship speed
      返回:
      Double the speed
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getSpeedReference

      ReferenceSystem getSpeedReference()
      Get the reference system used to calculate speed
      返回:
      ReferenceSystem the reference
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getVesselSet

      double getVesselSet()
      Get the vessel set (water current direction)
      返回:
      Double the set
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getVesselDrift

      double getVesselDrift()
      Get the vessel drift
      返回:
      double the drift
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getSpeedUnits

      Units getSpeedUnits()
      Get the units of speed measurements
      返回:
      Units the speed units (K, N, S)
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • setHeading

      void setHeading(double heading)
      Set ownship heading
      参数:
      heading - the heading
    • setHeadingStatus

      void setHeadingStatus(DataStatus status)
      Set the heading data status
      参数:
      status - the status
    • setCourse

      void setCourse(double course)
      Set ownship course
      参数:
      course - the course
    • setCourseReference

      void setCourseReference(ReferenceSystem reference)
      Set the reference system for the course
      参数:
      reference - the reference
    • setSpeed

      void setSpeed(double speed)
      Set ownship speed
      参数:
      speed - the speed
    • setSpeedReference

      void setSpeedReference(ReferenceSystem reference)
      Set the reference system for the speed
      参数:
      reference - the reference
    • setVesselSet

      void setVesselSet(double set)
      Set the vessel set
      参数:
      set - the vessel set
    • setVesselDrift

      void setVesselDrift(double drift)
      Set the vessel drift
      参数:
      drift - the vessel drift
    • setSpeedUnits

      void setSpeedUnits(Units units)
      Set the speed units
      参数:
      units - the units