org.placelab.midp.debug
Class BluetoothGPSSpotterMidlet

java.lang.Object
  extended byjavax.microedition.midlet.MIDlet
      extended byorg.placelab.midp.debug.BluetoothGPSSpotterMidlet
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener, ScanOnceListener, SpotterListener

public class BluetoothGPSSpotterMidlet
extends javax.microedition.midlet.MIDlet
implements ScanOnceListener, javax.microedition.lcdui.CommandListener

Communicates with a bluetooth GPS device and displays a human readable version of the NMEA sentences produced


Field Summary
protected  boolean alive
           
protected  javax.microedition.lcdui.Form form
           
protected  javax.microedition.lcdui.StringItem gpsStringItem
           
static BluetoothGPSSpotterMidlet instance
           
protected  java.util.Vector myList
           
 
Constructor Summary
BluetoothGPSSpotterMidlet()
           
 
Method Summary
 void appendString(java.lang.String s)
           
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
           
protected  void destroyApp(boolean flag)
           
 void endOfScan(Spotter sender)
          Sent when a Spotter doing scanOnce concludes its operation.
protected  javax.microedition.lcdui.Form getForm()
           
 javax.microedition.lcdui.StringItem getGPSStringItem()
           
 void gotMeasurement(Spotter sender, Measurement m)
           
protected  void pauseApp()
           
 void spotterExceptionThrown(Spotter s, SpotterException ex)
           
 void start()
           
protected  void startApp()
           
 void updateList()
           
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

form

protected javax.microedition.lcdui.Form form

alive

protected boolean alive

gpsStringItem

protected javax.microedition.lcdui.StringItem gpsStringItem

myList

protected java.util.Vector myList

instance

public static BluetoothGPSSpotterMidlet instance
Constructor Detail

BluetoothGPSSpotterMidlet

public BluetoothGPSSpotterMidlet()
Method Detail

startApp

protected void startApp()
                 throws javax.microedition.midlet.MIDletStateChangeException
Throws:
javax.microedition.midlet.MIDletStateChangeException

pauseApp

protected void pauseApp()

destroyApp

protected void destroyApp(boolean flag)
                   throws javax.microedition.midlet.MIDletStateChangeException
Throws:
javax.microedition.midlet.MIDletStateChangeException

getForm

protected javax.microedition.lcdui.Form getForm()

getGPSStringItem

public javax.microedition.lcdui.StringItem getGPSStringItem()

start

public void start()

gotMeasurement

public void gotMeasurement(Spotter sender,
                           Measurement m)
Specified by:
gotMeasurement in interface SpotterListener

endOfScan

public void endOfScan(Spotter sender)
Description copied from interface: ScanOnceListener
Sent when a Spotter doing scanOnce concludes its operation.

Specified by:
endOfScan in interface ScanOnceListener
Parameters:
sender - the Spotter that has concluded its scanOnce operation
See Also:
Spotter.scanOnce(), Spotter.scanOnce(EventSystem)

updateList

public void updateList()

appendString

public void appendString(java.lang.String s)

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

spotterExceptionThrown

public void spotterExceptionThrown(Spotter s,
                                   SpotterException ex)
Specified by:
spotterExceptionThrown in interface SpotterListener