|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.devices.gps.garmin.GarminPacket
org.jscience.devices.gps.garmin.WaypointDataPacket
public class WaypointDataPacket
This class encapsulates a Waypoint-packet. The Garmin-protocol contains a huge amount of different Waypoint-Packet specifications. Only the one labelled D108 is implemented so far.
| Field Summary | |
|---|---|
protected java.lang.String |
address
Address number |
protected float |
alt
Altitude. |
protected short |
attr
Attributes. |
protected char[] |
cc
Country code. |
protected java.lang.String |
city
City name. |
protected short |
color
Color of waypoint when displayed on the GPS. |
protected java.lang.String |
comment
Waypoint comment. |
protected java.lang.String |
cross_road
Intersecting road label. |
protected static int |
datatypeversion
Holds information about which waypoint-format this Garmin-unit uses. |
protected float |
depth
Depth. |
protected float |
dist
Proximity distance in meters. |
protected short |
dspl
Display options. |
protected java.lang.String |
facility
facility name. |
protected PositionDegrees |
lat
Latitude of waypoint. |
protected PositionDegrees |
lon
Longitude of waypoint. |
protected java.lang.String |
name
Waypoint name. |
protected int |
posn
proximity position |
protected int |
smbl
Waypoint symbol. |
protected char[] |
state
State. |
protected short[] |
subclass
Subclass of waypoint |
protected short |
wpt_class
Class of waypoint. |
| Fields inherited from class org.jscience.devices.gps.garmin.GarminPacket |
|---|
Cmnd_Abort_Transfer, Cmnd_Start_Pvt_Data, Cmnd_Stop_Pvt_Data, Cmnd_Transfer_Alm, Cmnd_Transfer_Laps, Cmnd_Transfer_Posn, Cmnd_Transfer_Prx, Cmnd_Transfer_Rte, Cmnd_Transfer_Time, Cmnd_Transfer_Trk, Cmnd_Transfer_Wpt, Cmnd_Turn_Off_Pwr, DLE, ETX, packet, Pid_Ack_Byte, Pid_Command_Data, Pid_Date_Time_Data, Pid_Lap, Pid_Nak_Byte, Pid_Position_Data, Pid_Product_Data, Pid_Product_Rqst, Pid_Protocol_Array, Pid_Prx_Wpt_Data, Pid_Pvt_Data, Pid_Records, Pid_Trk_data, Pid_Trk_Hdr, Pid_Wpt_Data, Pid_Xfer_Cmplt, pointer |
| Constructor Summary | |
|---|---|
WaypointDataPacket(GarminPacket p)
Creates a new WaypointDataPacket object. |
|
WaypointDataPacket(int[] p)
Throws a PacketNotRecognizedException if the Waypoint-dataformat is not implemented. |
|
| Method Summary | |
|---|---|
PositionRadians |
getLatitude()
This method returns the latitude of the waypoint. |
PositionRadians |
getLongitude()
This method returns the longitude of the waypoint. |
java.lang.String |
getName()
This method returns the name of the waypoint. |
static void |
setDatatypeVersion(int v)
Sets which version of the packet that this class should treat. |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class org.jscience.devices.gps.garmin.GarminPacket |
|---|
calcChecksum, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getPointer, getRawPacket, idToString, isLegal, readBoolean, readBoolean, readByte, readByte, readDouble, readDouble, readFloat, readFloat, readLong, readLong, readNullTerminatedString, readNullTerminatedString, readPosition, readPosition, readWord, readWord, setPointer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static int datatypeversion
protected short wpt_class
protected short color
protected short dspl
protected short attr
protected int smbl
protected short[] subclass
protected int posn
protected PositionDegrees lat
protected PositionDegrees lon
protected float alt
protected float depth
protected float dist
protected char[] state
protected char[] cc
protected java.lang.String name
protected java.lang.String comment
protected java.lang.String facility
protected java.lang.String city
protected java.lang.String address
protected java.lang.String cross_road
| Constructor Detail |
|---|
public WaypointDataPacket(int[] p)
p - DOCUMENT ME!public WaypointDataPacket(GarminPacket p)
p - DOCUMENT ME!| Method Detail |
|---|
public static void setDatatypeVersion(int v)
v - DOCUMENT ME!public PositionRadians getLatitude()
getLatitude in interface IPositionpublic PositionRadians getLongitude()
getLongitude in interface IPositionpublic java.lang.String getName()
getName in interface IWaypointpublic java.lang.String toString()
toString in class GarminPacket
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||