javax.microedition.sensor
Class AccelerationChannelInfo

java.lang.Object
  extended by javax.microedition.sensor.NXTChannelInfo
      extended by javax.microedition.sensor.AccelerationChannelInfo
All Implemented Interfaces:
ChannelInfo

public class AccelerationChannelInfo
extends NXTChannelInfo

ChannelInfo for acceleration channels axis_x, axis_y and axis_z as implemented by the Mindsensors range of acceleration sensors.

Author:
Lawrie Griffiths

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

Field Detail

axes

public static final String[] axes
Constructor Detail

AccelerationChannelInfo

public AccelerationChannelInfo(String axis)
Method Detail

getRegister

public int getRegister()
Description copied from class: NXTChannelInfo
Get the register that returns channel data for an I2C channel

Overrides:
getRegister in class NXTChannelInfo
Returns:
the register

getMeasurementRanges

public MeasurementRange[] getMeasurementRanges()

getName

public String getName()

getUnit

public Unit getUnit()
Specified by:
getUnit in interface ChannelInfo
Overrides:
getUnit in class NXTChannelInfo

getDataLength

public int getDataLength()
Overrides:
getDataLength in class NXTChannelInfo

getScale

public int getScale()
Specified by:
getScale in interface ChannelInfo
Overrides:
getScale in class NXTChannelInfo