|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.mvc.GpsModel
public class GpsModel
Refactoring ongoing (split in Model and Controller). GPSstate maintains a higher level state of communication with the GPS device. It currently contains very specific commands MTK loggers but that could change in the future by extending GPSstate with such features in a derived class. Must still move stuff to MtkController, move to MtkModel mostly done.
GPSrxtx
Field Summary |
---|
Fields inherited from interface gps.ProtocolConstants |
---|
PROTOCOL_HOLUX_PHLX, PROTOCOL_INVALID, PROTOCOL_MTK, PROTOCOL_SIRFIII, PROTOCOL_SKYTRAQ, PROTOCOL_WONDEPROUD |
Constructor Summary | |
---|---|
GpsModel(GPSrxtx gpsRxTx,
int protocol)
Initialiser. |
Method Summary | |
---|---|
void |
addListener(GPSListener l)
add a listener to event thrown by this class |
boolean |
analyseNMEA(java.lang.String[] sNmea)
|
int |
getEndAddr()
Get the end address for the log download. |
GPSRecord |
getGpsRecord()
|
GpsLinkHandler |
getHandler()
Start of code that should be part of the final interface after refactoring. |
MtkModel |
getMtkModel()
|
int |
getNextReadAddr()
Get the log address that we are now expecting to receive data for. |
int |
getOutStandingCmdsCount()
Get the number of Cmds that are still waiting to be sent and/or waiting for acknowledgement. |
int |
getStartAddr()
Get the start address for the log download. |
boolean |
getStats()
|
boolean |
isGpsDecode()
|
boolean |
isLogDownloadOnGoing()
Get 'download ongoing' status. |
void |
removeListener(GPSListener l)
|
void |
sendCmd(GpsLinkExecCommand s)
Send an NMEA string to the link. |
void |
setAllUnavailable()
Invalidates any data previously fetched from the device. |
void |
setGpsDecode(boolean gpsDecode)
|
void |
setGPSRxtx(GPSrxtx gpsRxTx)
Start |
void |
setProtocol(int protocol)
|
void |
setStats(boolean stats)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GpsModel(GPSrxtx gpsRxTx, int protocol)
Method Detail |
---|
public final void setProtocol(int protocol)
public final MtkModel getMtkModel()
public final GpsLinkHandler getHandler()
public final void setGPSRxtx(GPSrxtx gpsRxTx)
gpsRxTx
- public final void setStats(boolean stats)
public final boolean getStats()
public void setAllUnavailable()
public final boolean analyseNMEA(java.lang.String[] sNmea)
public final boolean isGpsDecode()
public final void setGpsDecode(boolean gpsDecode)
gpsDecode
- Activate gps decoding if true, do not decode if false. This
may improve performance.public final GPSRecord getGpsRecord()
public final void addListener(GPSListener l)
public final void removeListener(GPSListener l)
public final void sendCmd(GpsLinkExecCommand s)
s
- NMEA string to send.public final int getOutStandingCmdsCount()
public final int getStartAddr()
public final int getEndAddr()
public final boolean isLogDownloadOnGoing()
public final int getNextReadAddr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |