|
|||||||||
| 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.TimeDataPacket
public class TimeDataPacket
Represents a Garmin date-time packet used for timestamping records.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TimeDataPacket(GarminPacket packet)
Creates a time data packet from the given packet data. |
|
| Method Summary | |
|---|---|
short |
getDay()
Reports the day of the month. |
short |
getHours()
Reports the hour of the day. |
short |
getMinutes()
Reports the minutes of the hour. |
short |
getMonth()
Reports the month. |
short |
getSeconds()
Reports the seconds of the minute. |
int |
getYear()
Reports the year. |
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 TimeDataPacket(GarminPacket packet)
packet - Packet to copy.
PacketNotRecognisedException - if the given packet is not a time data packet.| Method Detail |
|---|
public short getDay()
getDay in interface GPSDatepublic short getMonth()
getMonth in interface GPSDatepublic int getYear()
getYear in interface GPSDatepublic short getHours()
getHours in interface GPSTimepublic short getMinutes()
getMinutes in interface GPSTimepublic short getSeconds()
getSeconds in interface GPSTimepublic String toString()
toString in class GarminPacket
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||