|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.nxt.SensorPort.SensorReader
protected class SensorPort.SensorReader
The SensorReader class provides a way of performing type dependent way to obtain data froma sensor. This base class simply returns no data.
Constructor Summary | |
---|---|
protected |
SensorPort.SensorReader()
|
Method Summary | |
---|---|
int |
readRawValue()
Read a raw value from the sensor. |
int |
readRawValues(int[] values)
Return a variable number of raw sensor values |
int |
readValue()
Read a normalised/calibrated value from the sensor. |
int |
readValues(int[] values)
Return a variable number of sensor values |
void |
reset()
Reset the sensor. |
void |
setMode(int mode)
Used to notify the reader that the operating mode of the sensor has changed. |
void |
setType(int type)
Used to notify the reader that the type of the sensor has changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SensorPort.SensorReader()
Method Detail |
---|
public void setType(int type)
type
- public void setMode(int mode)
mode
- public int readValue()
public int readRawValue()
public int readValues(int[] values)
values
- An array in which to return the sensor values.
public int readRawValues(int[] values)
values
- An array in which to return the sensor values.
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |