kaos.robots.util.gps
Class GPSReader

java.lang.Object
  extended by java.lang.Thread
      extended by kaos.robots.util.gps.GPSReader
All Implemented Interfaces:
java.lang.Runnable

public class GPSReader
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 Coordinate _currentCoordinate
           
protected  Logger _logger
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GPSReader(int commPort, int interval)
           
 
Method Summary
 double getCourse()
           
 GPSPosition getDatum()
           
 GPSPose getGPSPose()
           
 GPSPosition getGPSPosition()
           
 int getReadInterval()
           
 double getX()
           
 Coordinate getXYPosition()
           
 double getY()
           
static void main(java.lang.String[] args)
           
protected  void printDebugString(java.lang.String msg, int loggerDisplayLevel)
           
 void run()
           
 void stopRunning()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_logger

protected Logger _logger

_currentCoordinate

public Coordinate _currentCoordinate
Constructor Detail

GPSReader

public GPSReader(int commPort,
                 int interval)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getDatum

public GPSPosition getDatum()

getGPSPosition

public GPSPosition getGPSPosition()

getGPSPose

public GPSPose getGPSPose()

getCourse

public double getCourse()

getReadInterval

public int getReadInterval()

getXYPosition

public Coordinate getXYPosition()

getX

public double getX()

getY

public double getY()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopRunning

public void stopRunning()

printDebugString

protected void printDebugString(java.lang.String msg,
                                int loggerDisplayLevel)

main

public static void main(java.lang.String[] args)