接口 OSDSentence
public interface OSDSentence
Own ship data.
Gives the movement vector of the ship.
Includes (in this order): Heading (degrees true), Heading status
Vessel course (degrees true), Course reference
Vessel speed, Speed reference (ReferenceSystem), Vessel set (degrees true), vessel drift,
Speed units
Example:
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
UnitsExample:
$RAOSD,35.1,A,36.0,P,10.2,P,15.3,0.1,N*41<CR><LF> - 作者:
- Joshua Sweaney
-
方法概要
修饰符和类型方法说明doubleGet the course of ownshipGet the reference system used to calculate coursedoubleGet ownship headingGet the status of heading datadoublegetSpeed()Get ownship speedGet the reference system used to calculate speedGet the units of speed measurementsdoubleGet the vessel driftdoubleGet the vessel set (water current direction)voidsetCourse(double course) Set ownship coursevoidsetCourseReference(ReferenceSystem reference) Set the reference system for the coursevoidsetHeading(double heading) Set ownship headingvoidsetHeadingStatus(DataStatus status) Set the heading data statusvoidsetSpeed(double speed) Set ownship speedvoidsetSpeedReference(ReferenceSystem reference) Set the reference system for the speedvoidsetSpeedUnits(Units units) Set the speed unitsvoidsetVesselDrift(double drift) Set the vessel driftvoidsetVesselSet(double set) Set the vessel set
-
方法详细资料
-
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
Set the heading data status- 参数:
status- the status
-
setCourse
void setCourse(double course) Set ownship course- 参数:
course- the course
-
setCourseReference
Set the reference system for the course- 参数:
reference- the reference
-
setSpeed
void setSpeed(double speed) Set ownship speed- 参数:
speed- the speed
-
setSpeedReference
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
Set the speed units- 参数:
units- the units
-