com.partnersoft.io.gps
Class GPSReading

java.lang.Object
  extended by com.partnersoft.io.gps.GPSReading
All Implemented Interfaces:
Coggable

public class GPSReading
extends java.lang.Object
implements Coggable

A reading from an NMEA GPS.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
GPSReading()
           
GPSReading(double deglat, double minlat, double deglon, double minlon)
           
GPSReading(double deglat, double minlat, double deglon, double minlon, double velocity, double bearing)
           
 
Method Summary
 double getBearing()
           
 double getLatitude()
          Gets the value of latitude
 double getLongitude()
          Gets the value of longitude
 int getPdop()
          Gets the value of pdop
 java.lang.String getProjection()
           
 java.lang.String getRawString()
          Gets the value of rawString
 int getSatellites()
          Gets the value of satellites
 Cog getState()
           
 java.lang.String getTime()
          Gets the value of time
 double getVelocity()
           
 double getX()
           
 double getY()
           
 void setBearing(double newBearing)
           
 void setLatitude(double argLatitude)
          Sets the value of latitude
 void setLongitude(double argLongitude)
          Sets the value of longitude
 void setPdop(int argPdop)
          Sets the value of pdop
 void setProjection(java.lang.String newProjection)
           
 void setRawString(java.lang.String argRawString)
          Sets the value of rawString
 void setSatellites(int argSatellites)
          Sets the value of satellites
 void setState(Cog state)
           
 void setTime(java.lang.String argTime)
          Sets the value of time
 void setVelocity(double newVelocity)
           
 void setX(double newX)
           
 void setY(double newY)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPSReading

public GPSReading()

GPSReading

public GPSReading(double deglat,
                  double minlat,
                  double deglon,
                  double minlon)

GPSReading

public GPSReading(double deglat,
                  double minlat,
                  double deglon,
                  double minlon,
                  double velocity,
                  double bearing)
Method Detail

getState

public Cog getState()
Specified by:
getState in interface Coggable

setState

public void setState(Cog state)
Specified by:
setState in interface Coggable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPdop

public int getPdop()
Gets the value of pdop

Returns:
the value of pdop

setPdop

public void setPdop(int argPdop)
Sets the value of pdop

Parameters:
argPdop - Value to assign to this.pdop

getSatellites

public int getSatellites()
Gets the value of satellites

Returns:
the value of satellites

setSatellites

public void setSatellites(int argSatellites)
Sets the value of satellites

Parameters:
argSatellites - Value to assign to this.satellites

getLatitude

public double getLatitude()
Gets the value of latitude

Returns:
the value of latitude

setLatitude

public void setLatitude(double argLatitude)
Sets the value of latitude

Parameters:
argLatitude - Value to assign to this.latitude

getLongitude

public double getLongitude()
Gets the value of longitude

Returns:
the value of longitude

setLongitude

public void setLongitude(double argLongitude)
Sets the value of longitude

Parameters:
argLongitude - Value to assign to this.longitude

getTime

public java.lang.String getTime()
Gets the value of time

Returns:
the value of time

setTime

public void setTime(java.lang.String argTime)
Sets the value of time

Parameters:
argTime - Value to assign to this.time

getRawString

public java.lang.String getRawString()
Gets the value of rawString

Returns:
the value of rawString

setRawString

public void setRawString(java.lang.String argRawString)
Sets the value of rawString

Parameters:
argRawString - Value to assign to this.rawString

getBearing

public double getBearing()

setBearing

public void setBearing(double newBearing)

getVelocity

public double getVelocity()

setVelocity

public void setVelocity(double newVelocity)

getProjection

public java.lang.String getProjection()

setProjection

public void setProjection(java.lang.String newProjection)

getX

public double getX()

setX

public void setX(double newX)

getY

public double getY()

setY

public void setY(double newY)