javax.microedition.sensor
Class NXTData
java.lang.Object
javax.microedition.sensor.NXTData
- All Implemented Interfaces:
- Data
public class NXTData
- extends Object
- implements Data
Implementation of the Data interface for NXT Sensors.
- Author:
- Lawrie Griffiths
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected int[] values
timeStamp
protected long timeStamp
info
protected ChannelInfo info
NXTData
public NXTData(ChannelInfo info,
int bufferSize)
getChannelInfo
public ChannelInfo getChannelInfo()
- Specified by:
getChannelInfo
in interface Data
getDoubleValues
public double[] getDoubleValues()
- Specified by:
getDoubleValues
in interface Data
getIntValues
public int[] getIntValues()
- Specified by:
getIntValues
in interface Data
getObjectValues
public Object[] getObjectValues()
- Specified by:
getObjectValues
in interface Data
getTimestamp
public long getTimestamp(int index)
- Specified by:
getTimestamp
in interface Data
getUncertainty
public float getUncertainty(int index)
- Specified by:
getUncertainty
in interface Data
isValid
public boolean isValid(int index)
- Specified by:
isValid
in interface Data