|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gps.GPSReading
public class GPSReading
A reading from an NMEA GPS.
| Constructor Summary | |
|---|---|
GPSReading()
|
|
GPSReading(Cog state)
|
|
GPSReading(GPSReading copy)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
double |
getBearing()
Bearing is degrees north, winding clockwise. |
double |
getLatitude()
Gets the value of latitude |
double |
getLongitude()
Gets the value of longitude |
double |
getVelocity()
|
double |
getX()
|
double |
getY()
|
void |
setBearing(double newBearing)
Bearing is degrees north, winding clockwise. |
void |
setLatitude(double argLatitude)
Sets the value of latitude |
void |
setLongitude(double argLongitude)
Sets the value of longitude |
void |
setVelocity(double newVelocity)
|
void |
setX(double newX)
|
void |
setY(double newY)
|
Cog |
toCog()
Returns the complete internal state of this object in the form of a Cog. |
java.lang.String |
toString()
|
XyPoint |
toXyPoint()
Returns the (x, y) values as an XyPoint. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GPSReading(GPSReading copy)
public GPSReading()
public GPSReading(Cog state)
| Method Detail |
|---|
public Cog toCog()
CoggableCog.
toCog in interface Coggablepublic java.lang.String toString()
toString in class java.lang.Objectpublic double getLatitude()
public void setLatitude(double argLatitude)
argLatitude - Value to assign to this.latitudepublic double getLongitude()
public void setLongitude(double argLongitude)
argLongitude - Value to assign to this.longitudepublic double getBearing()
public void setBearing(double newBearing)
public double getVelocity()
public void setVelocity(double newVelocity)
public double getX()
public void setX(double newX)
public java.lang.Object clone()
clone in class java.lang.Objectpublic double getY()
public void setY(double newY)
public XyPoint toXyPoint()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||