Package gda.device
Interface ILEDLight
- All Superinterfaces:
Findable
- All Known Implementing Classes:
LEDLight
a LED light provides either On/Off switch, or brightness control, or both
-
Method Summary
Modifier and TypeMethodDescriptiondoubleget the brightness of the lightbooleanweather the device has brightness control or notbooleanweather the device has switch control or notvoidoff()switch light offvoidon()switch light onvoidsetBrightness(double v) set the brightness of the light
-
Method Details
-
hasSwitch
boolean hasSwitch()weather the device has switch control or not- Returns:
- true or false
-
hasBrightnessControl
boolean hasBrightnessControl()weather the device has brightness control or not- Returns:
- true or false
-
on
switch light on- Throws:
DeviceException
-
off
switch light off- Throws:
DeviceException
-
setBrightness
set the brightness of the light- Parameters:
v-- Throws:
DeviceException
-
getBrightness
get the brightness of the light- Returns:
- the brightness of the light
- Throws:
DeviceException
-