javax.microedition.sensor
Class NXTChannelInfo
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NXTChannelInfo
public NXTChannelInfo()
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