javax.microedition.sensor
Class NXTChannelInfo

java.lang.Object
  extended by javax.microedition.sensor.NXTChannelInfo
All Implemented Interfaces:
ChannelInfo
Direct Known Subclasses:
AccelerationChannelInfo, BatteryChannelInfo, ColorChannelInfo, ColorIndexChannelInfo, ColorRGBChannelInfo, GyroChannelInfo, HeadingChannelInfo, LightChannelInfo, SoundChannelInfo, TemperatureChannelInfo, TiltChannelInfo, TouchChannelInfo, UltrasonicChannelInfo

public abstract class NXTChannelInfo
extends Object
implements ChannelInfo

Abstract implementation ChannelInfo with extra methods needed for NXT sensors

Author:
Lawrie Griffiths

Field Summary
 
Fields inherited from interface javax.microedition.sensor.ChannelInfo
TYPE_DOUBLE, TYPE_INT, TYPE_OBJECT
 
Constructor Summary
NXTChannelInfo()
           
 
Method Summary
 float getAccuracy()
           
 int getDataLength()
           
 int getDataType()
           
 int getOffset()
          Get the value that represents zero.
 int getRegister()
          Get the register that returns channel data for an I2C channel
 int getScale()
           
 Unit getUnit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.microedition.sensor.ChannelInfo
getMeasurementRanges, getName
 

Constructor Detail

NXTChannelInfo

public NXTChannelInfo()
Method Detail

getRegister

public int getRegister()
Get the register that returns channel data for an I2C channel

Returns:
the register

getAccuracy

public float getAccuracy()
Specified by:
getAccuracy in interface ChannelInfo

getDataType

public int getDataType()
Specified by:
getDataType in interface ChannelInfo

getScale

public int getScale()
Specified by:
getScale in interface ChannelInfo

getDataLength

public int getDataLength()

getUnit

public Unit getUnit()
Specified by:
getUnit in interface ChannelInfo

getOffset

public int getOffset()
Get the value that represents zero.

Returns:
the offset