Class DummyCoilElement

    • Constructor Detail

      • DummyCoilElement

        public DummyCoilElement​(int startAddress)
    • Method Detail

      • getLength

        public int getLength()
        Description copied from interface: ModbusElement
        Number of Registers or Coils.
        Specified by:
        getLength in interface ModbusElement<java.lang.Boolean>
        Returns:
        the number of Registers or Coils
      • _setNextWriteValue

        public void _setNextWriteValue​(java.util.Optional<java.lang.Boolean> valueOpt)
        Description copied from interface: ModbusElement
        Sets a value that should be written to the Modbus device.
        Specified by:
        _setNextWriteValue in interface ModbusElement<java.lang.Boolean>
        Parameters:
        valueOpt - the Optional value
      • setInputCoil

        public void setInputCoil​(java.lang.Boolean coil)
        We are not setting a value for a DummyElement.
        Specified by:
        setInputCoil in interface ModbusCoilElement
        Parameters:
        coil - the value