ist.palcom.services.location.gps
Class BTGps

java.lang.Object
  extended by ist.palcom.palcomthreads.PalcomThread
      extended by ist.palcom.palcomthreads.PalcomPriorityThread
          extended by ist.palcom.services.location.gps.BTGps
All Implemented Interfaces:
Gps

public class BTGps
extends PalcomPriorityThread
implements Gps

Main class for communication with GPS receiver.


Constructor Summary
BTGps(java.lang.String btUrl)
          Creates new receiver.
 
Method Summary
 void doStart()
           
 void doStop()
           
 PalcomPriorityThread getThread()
           
 boolean isConnected()
           
 void run()
          Reads in sentences sent by the GPS receiver.
 void setCallback(GpsService callback)
           
 
Methods inherited from class ist.palcom.palcomthreads.PalcomPriorityThread
getPriority, setPriority
 
Methods inherited from class ist.palcom.palcomthreads.PalcomThread
askEvent, disableIOEvents, disablePeriodicEvents, enableIOEvent, enablePeriodicEvents, getScheduler, putEvent, terminate, waitEvent, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTGps

public BTGps(java.lang.String btUrl)
Creates new receiver.

Method Detail

setCallback

public void setCallback(GpsService callback)
Specified by:
setCallback in interface Gps

isConnected

public boolean isConnected()

run

public void run()
Reads in sentences sent by the GPS receiver. When a supported sentence has been received publish msg and pauses for specified amount of time. Continues on I/O errors.

Overrides:
run in class PalcomThread

doStart

public void doStart()
Specified by:
doStart in interface Gps

doStop

public void doStop()
Specified by:
doStop in interface Gps

getThread

public PalcomPriorityThread getThread()
Specified by:
getThread in interface Gps