com.partnersoft.io.gps
Class GPSPosition

java.lang.Object
  extended by com.partnersoft.io.gps.GPSPosition
All Implemented Interfaces:
java.io.Serializable

public class GPSPosition
extends java.lang.Object
implements java.io.Serializable

A GPS position reading.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.
See Also:
Serialized Form

Constructor Summary
GPSPosition()
           
GPSPosition(double longitude, double latitude)
           
 
Method Summary
 GPSPosition copy()
           
 int[][] getIntegerCoords()
          Returns two int arrays; each has deg, minutes, seconds, and thousandths of a second (mils).
 double getLatitude()
          Gets the value of latitude
 double getLongitude()
          Gets the value of longitude
 double getPdop()
          Gets the value of pdop
 java.lang.String getPositionString()
           
 int getSatellites()
          Gets the value of satellites
 PartnerDateTime getTime()
          Gets the value of time
 void setLatitude(double argLatitude)
          Sets the value of latitude
 void setLongitude(double argLongitude)
          Sets the value of longitude
 void setPdop(double argPdop)
          Sets the value of pdop
 void setSatellites(int argSatellites)
          Sets the value of satellites
 void setTime(PartnerDateTime argTime)
          Sets the value of time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSPosition

public GPSPosition()

GPSPosition

public GPSPosition(double longitude,
                   double latitude)
Method Detail

getIntegerCoords

public int[][] getIntegerCoords()
Returns two int arrays; each has deg, minutes, seconds, and thousandths of a second (mils). result[0] is longitude; result[1] is latitude.


getPositionString

public java.lang.String getPositionString()

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

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

getTime

public PartnerDateTime getTime()
Gets the value of time

Returns:
the value of time

setTime

public void setTime(PartnerDateTime argTime)
Sets the value of time

Parameters:
argTime - Value to assign to this.time

getPdop

public double getPdop()
Gets the value of pdop

Returns:
the value of pdop

setPdop

public void setPdop(double 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

copy

public GPSPosition copy()