lejos.nxt
Class SensorPort.StandardReader

java.lang.Object
  extended by lejos.nxt.SensorPort.SensorReader
      extended by lejos.nxt.SensorPort.StandardReader
Enclosing class:
SensorPort

protected class SensorPort.StandardReader
extends SensorPort.SensorReader


Constructor Summary
protected SensorPort.StandardReader()
           
 
Method Summary
 int readRawValue()
          Reads the raw value of the sensor.
 int readValue()
          Returns value compatible with Lego firmware.
 
Methods inherited from class lejos.nxt.SensorPort.SensorReader
readRawValues, readValues, reset, setMode, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensorPort.StandardReader

protected SensorPort.StandardReader()
Method Detail

readValue

public int readValue()
Returns value compatible with Lego firmware.

Overrides:
readValue in class SensorPort.SensorReader
Returns:
the computed value

readRawValue

public final int readRawValue()
Reads the raw value of the sensor.

Overrides:
readRawValue in class SensorPort.SensorReader
Returns:
the raw sensor value