Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.platform.sensors
Class LightSensor

    java.lang.Object
      avrora.sim.platform.sensors.Sensor
          avrora.sim.platform.sensors.LightSensor

public class LightSensor
extends Sensor

The `LightSensor` class implements a light sensor like that present on the Mica2.

Field Summary
`protected int` | `channel`
`protected FiniteStateMachine` | `fsm`
`protected AtmelMicrocontroller` | `mcu`
`protected static java.lang.String[]` | `names`
`protected boolean` | `on`
`protected boolean` | `power`

Fields inherited from class avrora.sim.platform.sensors.Sensor
`data`

Constructor Summary
`LightSensor(AtmelMicrocontroller m, int adcChannel, java.lang.String onPin, java.lang.String powPin)`

Methods inherited from class avrora.sim.platform.sensors.Sensor
`setSensorData`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### mcu

    protected final AtmelMicrocontroller mcu

### channel

    protected final int channel

### fsm

    protected final FiniteStateMachine fsm

### names

    protected static final java.lang.String[] names

### power

    protected boolean power

### on

    protected boolean on

Constructor Detail

### LightSensor

    public LightSensor(AtmelMicrocontroller m,
                       int adcChannel,
                       java.lang.String onPin,
                       java.lang.String powPin)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD