|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.mvc.GpsController
public class GpsController
Refactoring ongoing.
Field Summary |
---|
Fields inherited from interface gps.ProtocolConstants |
---|
PROTOCOL_HOLUX_PHLX, PROTOCOL_INVALID, PROTOCOL_MTK, PROTOCOL_SIRFIII, PROTOCOL_SKYTRAQ, PROTOCOL_WONDEPROUD |
Method Summary | |
---|---|
boolean |
cmd(int cmd)
Perform a command. |
boolean |
cmd(int cmd,
CmdParam param)
Perform a command. |
void |
eraseLog()
Erase the log. |
static GpsController |
getInstance(GpsModel model,
int protocol)
|
void |
getLog(BT747Path log)
|
GpsModel |
getModel()
|
MtkController |
getMtkController()
TODO: Should no longer exist after refactoring. |
void |
initConnection()
Start the timer To be called once the port is opened. |
boolean |
isSupportedCmd(int cmd)
Check if a command is supported. |
void |
reqDeviceInfo()
|
void |
reqLogOnOffStatus()
|
void |
reqStatus()
Get the current status of the device |
void |
run()
|
void |
setAgpsData(byte[] agpsData)
|
void |
setDataNeeded(int dataType)
Indicates that the application requires the given data. |
void |
setDeviceOperationHandler(DeviceOperationHandlerIF h)
|
void |
setDownloadTimeOut(int downloadTimeOut)
|
void |
setGpsDecode(boolean gpsDecode)
|
void |
setProtocol(int newProtocol)
Sets or changes the protocol on the link. |
void |
started()
Called just before the thread is started. |
void |
stopErase()
The log is being erased - the user request to abandon waiting for the end of this operation. |
void |
stopped()
Called just after the thread is stopped. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final GpsController getInstance(GpsModel model, int protocol)
public final void setProtocol(int newProtocol)
newProtocol
- The new protocol. Chosen from ProtocolConstants.PROTOCOL_MTK
,
ProtocolConstants.PROTOCOL_SIRFIII
, ProtocolConstants.PROTOCOL_HOLUX_PHLX
public final GpsModel getModel()
public final MtkController getMtkController()
public final void setGpsDecode(boolean gpsDecode)
public final void setDataNeeded(int dataType)
dataType
- public final void reqDeviceInfo()
public final void setDownloadTimeOut(int downloadTimeOut)
public final void reqStatus()
public final void reqLogOnOffStatus()
public final void eraseLog()
public final void stopErase()
public final void initConnection()
public final void setDeviceOperationHandler(DeviceOperationHandlerIF h)
public final void run()
run
in interface BT747Thread
public final void started()
BT747Thread
started
in interface BT747Thread
public final void stopped()
BT747Thread
stopped
in interface BT747Thread
public final boolean cmd(int cmd)
DeviceControllerIF
cmd
in interface DeviceControllerIF
cmd
- Command identification.
public final boolean cmd(int cmd, CmdParam param)
DeviceControllerIF
cmd
in interface DeviceControllerIF
cmd
- Command identification.
public final boolean isSupportedCmd(int cmd)
DeviceControllerIF
isSupportedCmd
in interface DeviceControllerIF
cmd
- Command identification.
public final void setAgpsData(byte[] agpsData)
public void getLog(BT747Path log)
getLog
in interface DeviceControllerIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |