public class PositionEvent extends ProviderEvent implements Cloneable
GGASentence
contains altitude).PositionProvider
,
PositionListener
,
Serialized Formsource
Constructor and Description |
---|
PositionEvent(Object source,
Position p,
double sog,
Double cog,
Date d,
Time t,
FaaMode m,
GpsFixQuality fq)
Creates a new instance of PositionEvent.
|
Modifier and Type | Method and Description |
---|---|
PositionEvent |
clone() |
Double |
getCourse()
Returns the current (true) course over ground.
|
Date |
getDate()
Returns the date.
|
GpsFixQuality |
getFixQuality()
Returns the current GPS fix quality.
|
FaaMode |
getMode()
Returns the current FAA operating mode of GPS receiver.
|
Position |
getPosition()
Returns the current position.
|
Double |
getSpeed()
Returns the current speed over ground, in km/h.
|
Time |
getTime()
Returns the time.
|
String |
toString() |
getSource
public PositionEvent clone()
public Double getCourse()
public Date getDate()
public GpsFixQuality getFixQuality()
public FaaMode getMode()
Returns the current FAA operating mode of GPS receiver.
Notice: may be always null
, depending on the NMEA version
in use.
public Position getPosition()
public Double getSpeed()
public Time getTime()
public String toString()
toString
in class EventObject
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.