jwo.landserf.process.gps.garmin
Class RouteDataPacket
java.lang.Object
jwo.landserf.process.gps.garmin.GarminPacket
jwo.landserf.process.gps.garmin.RouteDataPacket
- All Implemented Interfaces:
- GPSRoute
- public class RouteDataPacket
- extends GarminPacket
- implements GPSRoute
Represents a Garmin route packet used for storing sets of waypoints.
- Version:
- 2.1, 27th June, 2004
- Author:
- Jo Wood, based on the design by Henrik Sorensen (haas@itu.dk).
Fields inherited from class jwo.landserf.process.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_Almanac_Data, Pid_Command_Data, Pid_Date_Time_Data, 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_Rte_Hdr, Pid_Rte_Link_Data, Pid_Rte_Wpt_Data, Pid_Trk_Data, Pid_Trk_Hdr, Pid_Wpt_Data, Pid_Xfer_Cmplt |
Method Summary |
String |
getName()
Reports the name of the route represented by this packet. |
Methods inherited from class jwo.landserf.process.gps.garmin.GarminPacket |
calcChecksum, commandToString, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getRawPacket, idToString, isLegal, readByte, readDouble, readFloat, readLong, readNullTerminatedString, readWord, setPacket, toString |
RouteDataPacket
public RouteDataPacket(int[] packet)
- Creates a route packet from the given data.
- Parameters:
packet
- Data representing the route packet.
- Throws:
PacketNotRecognizedException
- if the route data format is not defined.
RouteDataPacket
public RouteDataPacket(GarminPacket packet)
- Creates a route packet from the given packet data.
- Parameters:
packet
- Packet to copy.
- Throws:
PacketNotRecognizedException
- if the given packet is not a route packet.
getName
public String getName()
- Reports the name of the route represented by this packet.
- Specified by:
getName
in interface GPSRoute
- Returns:
- Route name.
Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004