ukcrobots.simplecore
Class LightSensor

java.lang.Object
  |
  +--ukcrobots.simplecore.Sensor
        |
        +--ukcrobots.simplecore.LightSensor

public class LightSensor
extends Sensor

Model a light sensor. Readings are returned as a percentage value.

Version:
2001.12.20
Author:
d.j.barnes @at@ kent.ac.uk

Constructor Summary
LightSensor(int id)
          Create a light sensor attached to a device.
 
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

LightSensor

public LightSensor(int id)
            throws NoSuchDeviceException
Create a light sensor attached to a device.

Parameters:
id - Which device. A value of 1, 2, or 3.