|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dk.itu.haas.GPS.Garmin.GarminPacket | +--dk.itu.haas.GPS.Garmin.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 |
smbl
Waypoint symbol. |
protected char[] |
state
State. |
protected short[] |
subclass
Subclass of waypoint |
protected short |
wpt_class
Class of waypoint. |
Fields inherited from class dk.itu.haas.GPS.Garmin.GarminPacket |
Cmnd_Abort_Transfer, Cmnd_Start_Pvt_Data, Cmnd_Stop_Pvt_Data, Cmnd_Transfer_Alm, 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_Nak_Byte, Pid_Position_Data, Pid_Product_Data, Pid_Product_Rqst, Pid_Protocol_Array, Pid_Pvt_Data, Pid_Records, Pid_Wpt_Data, Pid_Xfer_Cmplt |
Constructor Summary | |
WaypointDataPacket(GarminPacket p)
|
|
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. |
Methods inherited from class dk.itu.haas.GPS.Garmin.GarminPacket |
calcChecksum, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getRawPacket, idToString, isLegal, readByte, readDouble, readFloat, readLong, readNullTerminatedString, readWord, toString |
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 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)
public WaypointDataPacket(GarminPacket p)
Method Detail |
public static void setDatatypeVersion(int v)
public PositionRadians getLatitude()
getLatitude
in interface IPosition
public PositionRadians getLongitude()
getLongitude
in interface IPosition
public java.lang.String getName()
getName
in interface IWaypoint
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |