net.sf.marineapi.provider.event
Class TPVEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.marineapi.provider.event.TPVEvent
All Implemented Interfaces:
Serializable

public class TPVEvent
extends EventObject

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).

Version:
$Revision: 104 $
Author:
Kimmo Tuukkanen
See Also:
TPVProvider, TPVListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TPVEvent(Object source, Position p, double sog, double cog, Date d, Time t, GpsMode m, GpsFixQuality fq)
          Creates a new instance of TPVEvent.
 
Method Summary
 TPVEvent clone()
           
 Double getCourse()
          Returns the current (true) course over ground.
 Date getDate()
          Returns the date.
 GpsFixQuality getFixQuality()
          Returns the current GPS fix quality.
 GpsMode getGpsMode()
          Returns the current GPS operating mode.
 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

TPVEvent

public TPVEvent(Object source,
                Position p,
                double sog,
                double cog,
                Date d,
                Time t,
                GpsMode m,
                GpsFixQuality fq)
Creates a new instance of TPVEvent.

Parameters:
source - Source object of event
Method Detail

clone

public TPVEvent clone()
Overrides:
clone in class Object

getCourse

public Double getCourse()
Returns the current (true) course over ground.

Returns:
the course

getDate

public Date getDate()
Returns the date.

Returns:
Date

getFixQuality

public GpsFixQuality getFixQuality()
Returns the current GPS fix quality.

Returns:
GpsFixQuality

getGpsMode

public GpsMode getGpsMode()
Returns the current GPS operating mode.

Returns:
GpsMode

getPosition

public Position getPosition()
Returns the current position.

Returns:
Position

getSpeed

public Double getSpeed()
Returns the current speed over ground, in km/h.

Returns:
the speed

getTime

public Time getTime()
Returns the time.

Returns:
Time

toString

public String toString()
Overrides:
toString in class EventObject


Copyright (C) 2010-2011 Java Marine API author(s). All Rights Reserved.