javax.microedition.sensor
Class NXTActiveData
java.lang.Object
javax.microedition.sensor.NXTActiveData
public class NXTActiveData
- extends Object
Represents active asynchronous transfers
- Author:
- Lawrie
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NXTActiveData
public NXTActiveData(NXTSensorConnection sensor,
int bufferSize,
DataListener listener,
int samplingInterval)
getSensor
public SensorConnection getSensor()
getBufferSize
public int getBufferSize()
getListener
public DataListener getListener()
getSamplingInterval
public int getSamplingInterval()
process
public void process()
- Process the entry. Check if we are ready to read a new sample and if so, read it.
When the buffer is full, call the data listener and start a new buffer