Interface Relay


  • public interface Relay
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isOff()
      Determines if the relay is off.
      boolean isOn()
      Determines if the relay is on.
      void off()
      Turn the relay off.
      void on()
      Turn the relay on.
    • Method Detail

      • on

        void on()
        Turn the relay on.
      • off

        void off()
        Turn the relay off.
      • isOn

        boolean isOn()
        Determines if the relay is on.
        Returns:
        True if the relay is on.
      • isOff

        boolean isOff()
        Determines if the relay is off.
        Returns:
        True if the relay is off.