类 PositionEvent

所有已实现的接口:
Serializable, Cloneable

public class PositionEvent extends ProviderEvent implements 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
另请参阅:
  • 构造器详细资料

    • 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 event
      pos - Position of the event
      sog - Speed over ground
      cog - Course over ground, in degrees.
      date - Date when position was recorded
      time - Time when position was recorded
      mode - FAA mode
      fq - Position fixQuality quality
  • 方法详细资料

    • clone

      public PositionEvent clone()
      覆盖:
      clone 在类中 Object
    • getCourse

      public Double getCourse()
      Returns the current (true) course over ground.
      返回:
      the course
    • getDate

      public Date getDate()
      Returns the date.
      返回:
      Date
    • getFixQuality

      public GpsFixQuality getFixQuality()
      Returns the current GPS fixQuality quality.
      返回:
      GpsFixQuality
    • getMode

      public FaaMode getMode()

      Returns the current FAA operating mode of GPS receiver.

      Notice: may be always null, depending on the NMEA version in use.

      返回:
      FaaMode
    • getPosition

      public Position getPosition()
      Returns the current position.
      返回:
      Position
    • getSpeed

      public Double getSpeed()
      Returns the current speed over ground, in km/h.
      返回:
      the speed
    • getTime

      public Time getTime()
      Returns the time.
      返回:
      Time
    • toString

      public String toString()
      覆盖:
      toString 在类中 EventObject