Class SwitchAction

  • All Implemented Interfaces:
    Action

    public class SwitchAction
    extends AbstractAction
    An action opening or closing a switch.
    Author:
    Etienne Lesot
    • Constructor Detail

      • SwitchAction

        public SwitchAction​(String id,
                            String switchId,
                            boolean open)
    • Method Detail

      • getType

        public String getType()
      • getSwitchId

        public String getSwitchId()
      • isOpen

        public boolean isOpen()
        If true, applying the action will open the switch, else it will close it.