Package gda.device

Interface ILEDLight

All Superinterfaces:
Findable
All Known Implementing Classes:
LEDLight

public interface ILEDLight extends Findable
a LED light provides either On/Off switch, or brightness control, or both
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get the brightness of the light
    boolean
    weather the device has brightness control or not
    boolean
    weather the device has switch control or not
    void
    off()
    switch light off
    void
    on()
    switch light on
    void
    setBrightness(double v)
    set the brightness of the light

    Methods inherited from interface gda.factory.Findable

    getName, setName
  • 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

      void on() throws DeviceException
      switch light on
      Throws:
      DeviceException
    • off

      void off() throws DeviceException
      switch light off
      Throws:
      DeviceException
    • setBrightness

      void setBrightness(double v) throws DeviceException
      set the brightness of the light
      Parameters:
      v -
      Throws:
      DeviceException
    • getBrightness

      double getBrightness() throws DeviceException
      get the brightness of the light
      Returns:
      the brightness of the light
      Throws:
      DeviceException