gps.mvc
Interface DeviceOperationHandlerIF

All Known Implementing Classes:
AgpsUploadHandler, WPLogDownloadHandler

public interface DeviceOperationHandlerIF

Defines the interface for a coordinated operation that is managed with the device. For example log download or AGPS data upload.

Author:
Mario

Method Summary
 boolean analyseResponse(java.lang.Object o)
          This method is called when a packet of some kind was received from the serial link.
 boolean notifyRun(GpsLinkHandler handler)
          This method is called on regular intervals (every 10ms or so) so that this Handler can send commands to the device as needed.
 

Method Detail

notifyRun

boolean notifyRun(GpsLinkHandler handler)
                  throws BT747Exception
This method is called on regular intervals (every 10ms or so) so that this Handler can send commands to the device as needed.

Parameters:
handler - The handler to use the serial link.
Returns:
true if handler must be maintained. If false, handler will no longer be called and dereferenced in the link controller.
Throws:
BT747Exception

analyseResponse

boolean analyseResponse(java.lang.Object o)
This method is called when a packet of some kind was received from the serial link.

Parameters:
o - The receive packet.
Returns:
true if the packet was treated and should not be treated elsewhere in the application.