public interface Light<S extends Sensor>
Modifier and Type | Method and Description |
---|---|
Actuator<S> |
assignActuator(S sensor)
Returns a light actuator for the specified sensor, or null if the light is to be
unaffected by the sensor.
|
S |
tryCast(Sensor sensor)
Returns the sensor cast to the type covered by this light, or null if the sensor is of
some other type.
|
Actuator<S> assignActuator(S sensor)