javax.microedition.sensor
Class NXTData

java.lang.Object
  extended by 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

Field Summary
protected  ChannelInfo info
           
protected  long timeStamp
           
protected  int[] values
           
 
Constructor Summary
NXTData(ChannelInfo info, int bufferSize)
           
 
Method Summary
 ChannelInfo getChannelInfo()
           
 double[] getDoubleValues()
           
 int[] getIntValues()
           
 Object[] getObjectValues()
           
 long getTimestamp(int index)
           
 float getUncertainty(int index)
           
 boolean isValid(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected int[] values

timeStamp

protected long timeStamp

info

protected ChannelInfo info
Constructor Detail

NXTData

public NXTData(ChannelInfo info,
               int bufferSize)
Method Detail

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