类 PositionEvent
java.lang.Object
java.util.EventObject
net.sf.marineapi.provider.event.ProviderEvent
net.sf.marineapi.provider.event.PositionEvent
- 所有已实现的接口:
Serializable,Cloneable
GPS time/position/velocity report with current position, altitude, speed,
course and a time stamp. Notice that altitude may be missing, depending on
the source sentence of position (only
GGASentence contains altitude).- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source -
构造器概要
构造器构造器说明PositionEvent(Object source, Position pos, double sog, Double cog, Date date, Time time, FaaMode mode, GpsFixQuality fq) Creates a new instance of PositionEvent. -
方法概要
修饰符和类型方法说明clone()Returns the current (true) course over ground.getDate()Returns the date.Returns the current GPS fixQuality quality.getMode()Returns the current FAA operating mode of GPS receiver.Returns the current position.getSpeed()Returns the current speed over ground, in km/h.getTime()Returns the time.toString()从类继承的方法 java.util.EventObject
getSource
-
构造器详细资料
-
PositionEvent
public PositionEvent(Object source, Position pos, double sog, Double cog, Date date, Time time, FaaMode mode, GpsFixQuality fq) Creates a new instance of PositionEvent.- 参数:
source- Source object of eventpos- Position of the eventsog- Speed over groundcog- Course over ground, in degrees.date- Date when position was recordedtime- Time when position was recordedmode- FAA modefq- Position fixQuality quality
-
-
方法详细资料
-
clone
-
getCourse
Returns the current (true) course over ground.- 返回:
- the course
-
getDate
Returns the date.- 返回:
- Date
-
getFixQuality
Returns the current GPS fixQuality quality.- 返回:
- GpsFixQuality
-
getMode
Returns the current FAA operating mode of GPS receiver.
Notice: may be always
null, depending on the NMEA version in use.- 返回:
- FaaMode
-
getPosition
Returns the current position.- 返回:
- Position
-
getSpeed
Returns the current speed over ground, in km/h.- 返回:
- the speed
-
getTime
Returns the time.- 返回:
- Time
-
toString
- 覆盖:
toString在类中EventObject
-