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>
        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>
        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
        coil - the value
      • getNextWriteValue

        public java.util.Optional<java.lang.Boolean> getNextWriteValue()
        Description copied from interface: ModbusCoilElement
        Gets the next write value.
        Specified by:
        getNextWriteValue in interface ModbusCoilElement
        the Optional next write value