uwcse.location.objects.cricket
Class CricketSerialPortThread
java.lang.Object
|
+--java.lang.Thread
|
+--uwcse.location.objects.cricket.CricketSerialPortThread
- All Implemented Interfaces:
- Runnable
- public class CricketSerialPortThread
- extends Thread
A Thread to initialize and then read streaming measured values from the
serial port connected to a cricket ultrasound listener.
- Version:
- $Revision: 1.2 $
- Author:
- Jeffrey Hightower
|
Method Summary |
void |
run()
|
void |
shutdown()
Signal the thread to stop executing. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
m_packetQueue
protected ProducerConsumerQueue m_packetQueue
m_flag
protected volatile boolean m_flag
CricketSerialPortThread
public CricketSerialPortThread(javax.comm.SerialPort serialPort,
ProducerConsumerQueue packetQueue)
throws IOException
- Create an Cricket serial port thread.
- Parameters:
serialPort - must be a valid open serial port connected to a cricket
listener at the proper baud rate.
- Throws:
IOException
shutdown
public void shutdown()
- Signal the thread to stop executing.
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/
© Copyright 2004 University of Washington CSE