Class DummyRegisterElement

    • Constructor Detail

      • DummyRegisterElement

        public DummyRegisterElement​(int address)
      • DummyRegisterElement

        public DummyRegisterElement​(int fromAddress,
                                    int toAddress)
    • Method Detail

      • getLength

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

        public void setInputRegisters​(com.ghgande.j2mod.modbus.procimg.InputRegister... registers)
        We are not setting a value for a DummyElement.
        Specified by:
        setInputRegisters in interface ModbusRegisterElement<java.lang.Void>
        registers - the InputRegisters
      • _setNextWriteValue

        public void _setNextWriteValue​(java.util.Optional<java.lang.Void> 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.Void>
        valueOpt - the Optional value
      • getNextWriteValue

        public java.util.Optional<com.ghgande.j2mod.modbus.procimg.Register[]> getNextWriteValue()
        Specified by:
        getNextWriteValue in interface ModbusRegisterElement<java.lang.Void>