Class SimulatorModbusImpl

java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.simulator.modbus.SimulatorModbusImpl
All Implemented Interfaces:
BridgeModbus, BridgeModbusTcp, OpenemsComponent, SimulatorModbus

public class SimulatorModbusImpl extends AbstractOpenemsComponent implements SimulatorModbus, BridgeModbus, BridgeModbusTcp, OpenemsComponent
  • Constructor Details

    • SimulatorModbusImpl

      public SimulatorModbusImpl()
  • Method Details

    • deactivate

      protected void deactivate()
      Description copied from class: AbstractOpenemsComponent
      Handles @Deactivate of implementations. Prints log output.
      Overrides:
      deactivate in class AbstractOpenemsComponent
    • getIpAddress

      public InetAddress getIpAddress()
      Description copied from interface: BridgeModbusTcp
      Gets the IP address.
      Specified by:
      getIpAddress in interface BridgeModbusTcp
      Returns:
      the IP address
    • addProtocol

      public void addProtocol(String sourceId, ModbusProtocol protocol)
      Description copied from interface: BridgeModbus
      Adds a Protocol with a source identifier to this Modbus Bridge.
      Specified by:
      addProtocol in interface BridgeModbus
      Parameters:
      sourceId - the unique source identifier
      protocol - the Modbus Protocol
    • removeProtocol

      public void removeProtocol(String sourceId)
      Description copied from interface: BridgeModbus
      Removes a Protocol from this Modbus Bridge.
      Specified by:
      removeProtocol in interface BridgeModbus
      Parameters:
      sourceId - the unique source identifier
    • retryModbusCommunication

      public void retryModbusCommunication(String sourceId)
      Description copied from interface: BridgeModbus
      The Modbus Bridge marks defective Components, e.g. if there are communication failures. If a component is marked as defective, reads and writes are paused for an increasing waiting time. This method resets the waiting time, causing the Modbus Bridge to retry if a Component is not anymore defective.

      Use this method if there is good reason that a Modbus Component should be available again 'now', e.g. because it was turned on manually.

      Specified by:
      retryModbusCommunication in interface BridgeModbus
      Parameters:
      sourceId - the unique source identifier