|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.gps.garmin.GarminPacket jwo.landserf.process.gps.garmin.TransferCompletedPacket
public class TransferCompletedPacket
Represents a packet transmitted after a large transfer of data units.
Field Summary |
---|
Constructor Summary | |
---|---|
TransferCompletedPacket(GarminPacket packet)
Creates a transfer completed packet from the given packet data. |
|
TransferCompletedPacket(int connectionType,
int commandID)
Creates a transfer complete packet that indicates the given command has completed. |
Method Summary | |
---|---|
int |
getCommandID()
Reports the command ID of that initiated the transfer that has just been completed. |
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 TransferCompletedPacket(int connectionType, int commandID)
connectionType
- Type of connection used to send packet - either GarminGPS.USB
or GarminGPS.SERIAL
.commandID
- Command id that has now been completed.public TransferCompletedPacket(GarminPacket packet)
packet
- Packet to copy.
PacketNotRecognisedException
- if the given packet is not a transfer completed packet.Method Detail |
---|
public int getCommandID()
public String toString()
toString
in class GarminPacket
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |