ukcrobots.simplecore
Class TouchSensor
java.lang.Object
|
+--ukcrobots.simplecore.Sensor
|
+--ukcrobots.simplecore.TouchSensor
- public class TouchSensor
- extends Sensor
Model a touch sensor as a device returning boolean values.
- Version:
- 2003.03.04
- Author:
- d.j.barnes @at@ kent.ac.uk
Method Summary |
boolean |
isPressed()
Interprets the value of the sensor as a boolean value |
TouchSensor
public TouchSensor(int id)
throws NoSuchDeviceException
isPressed
public boolean isPressed()
- Interprets the value of the sensor as a boolean value
- Returns:
- true if the sensor is pressed, false otherwise.