|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.nutiteq.location.providers.BluetoothProvider
public class BluetoothProvider
Provider reading NMEA data from given connection source.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface com.nutiteq.location.LocationSource |
|---|
STATUS_CANT_LOCATE, STATUS_CONNECTED, STATUS_CONNECTING, STATUS_CONNECTION_LOST |
| Constructor Summary | |
|---|---|
BluetoothProvider(LocationDataConnectionProvider connectionProvider,
java.lang.String url)
Create provider |
|
| Method Summary | |
|---|---|
void |
addLocationListener(LocationListener listener)
Add listener for location coordinates |
void |
disconnect()
|
WgsPoint |
getLocation()
|
LocationMarker |
getLocationMarker()
Get location marker used on screen |
int |
getStatus()
Get status code for location source. |
void |
quit()
Quit location polling |
void |
run()
|
void |
setLocationMarker(LocationMarker marker)
Set location marker where to push location updates |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.nutiteq.location.LocationSource |
|---|
start |
| Constructor Detail |
|---|
public BluetoothProvider(LocationDataConnectionProvider connectionProvider,
java.lang.String url)
connectionProvider - object for connection handlingurl - url for connection| Method Detail |
|---|
public WgsPoint getLocation()
getLocation in interface LocationSourcepublic int getStatus()
LocationSource
getStatus in interface LocationSourcepublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void disconnect()
public LocationMarker getLocationMarker()
LocationSource
getLocationMarker in interface LocationSourcepublic void quit()
LocationSource
quit in interface LocationSourcepublic void setLocationMarker(LocationMarker marker)
LocationSource
setLocationMarker in interface LocationSourcemarker - marker displayed on screenpublic void addLocationListener(LocationListener listener)
LocationSource
addLocationListener in interface LocationSourcelistener - listener to be added
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||