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

Constructor Summary
TouchSensor(int id)
           
 
Method Summary
 boolean isPressed()
          Interprets the value of the sensor as a boolean value
 
Methods inherited from class ukcrobots.simplecore.Sensor
activate, getDevice, passivate, readValue, readValueAsInt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

TouchSensor

public TouchSensor(int id)
            throws NoSuchDeviceException
Method Detail

isPressed

public boolean isPressed()
Interprets the value of the sensor as a boolean value

Returns:
true if the sensor is pressed, false otherwise.