|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.landserf.process.gps.garmin.GarminPacket
jwo.landserf.process.gps.garmin.PositionDataPacket
public class PositionDataPacket
Represents a packet containing a point location.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
PositionDataPacket(GarminPacket packet)
Creates a position packet from the given packet. |
|
| Method Summary | |
|---|---|
float |
getAltitude()
Reports the altitude of this position. |
AngleRadians |
getLatitude()
Reports the latitude of the position. |
AngleRadians |
getLongitude()
Reports the longitude of the position. |
String |
toString()
Reports a textual representation of this packet. |
| Methods inherited from class jwo.landserf.process.gps.garmin.GarminPacket |
|---|
commandToString, createBasicPacket, createCommandPacket, getChecksum, getConnectionType, getData, getDataLength, getID, getRawPacketData, getType, idToString, readDataByte, readDataDouble, readDataFloat, readDataLong, readDataString, readDataWord, setPacket, setSerialPacket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PositionDataPacket(GarminPacket packet)
packet - Packet to copy.
PacketNotRecognisedException - if the given packet is not a position data packet.| Method Detail |
|---|
public AngleRadians getLatitude()
getLatitude in interface Positionpublic AngleRadians getLongitude()
getLongitude in interface Positionpublic float getAltitude()
getAltitude in interface Positionpublic String toString()
toString in class GarminPacket
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||