|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
net.sf.marineapi.provider.event.ProviderEvent
net.sf.marineapi.provider.event.PositionEvent
public class PositionEvent
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).
PositionProvider
,
PositionListener
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PositionEvent(Object source,
Position p,
double sog,
double cog,
Date d,
Time t,
FaaMode m,
GpsFixQuality fq)
Creates a new instance of PositionEvent. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PositionEvent(Object source, Position p, double sog, double cog, Date d, Time t, FaaMode m, GpsFixQuality fq)
source
- Source object of eventMethod Detail |
---|
public PositionEvent clone()
clone
in class Object
public Double getCourse()
public Date getDate()
public GpsFixQuality getFixQuality()
public FaaMode getMode()
public Position getPosition()
public Double getSpeed()
public Time getTime()
public String toString()
toString
in class EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |