Class BridgeMbusImpl

All Implemented Interfaces:
BridgeMbus, OpenemsComponent, org.osgi.service.event.EventHandler

public class BridgeMbusImpl extends AbstractOpenemsComponent implements BridgeMbus, org.osgi.service.event.EventHandler, OpenemsComponent
  • Constructor Details

    • BridgeMbusImpl

      public BridgeMbusImpl()
  • Method Details

    • deactivate

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

      public void handleEvent(org.osgi.service.event.Event event)
      Specified by:
      handleEvent in interface org.osgi.service.event.EventHandler
    • getmBusConnection

      public org.openmuc.jmbus.MBusConnection getmBusConnection()
      Description copied from interface: BridgeMbus
      Get the MBusConnection.
      Specified by:
      getmBusConnection in interface BridgeMbus
      Returns:
      the MBusConnection
    • addTask

      public void addTask(String sourceId, MbusTask task)
      Description copied from interface: BridgeMbus
      Add a Task.
      Specified by:
      addTask in interface BridgeMbus
      Parameters:
      sourceId - the Source-ID
      task - the MbusTask
    • removeTask

      public void removeTask(String sourceId)
      Description copied from interface: BridgeMbus
      Remove the task with the given Source-ID.
      Specified by:
      removeTask in interface BridgeMbus
      Parameters:
      sourceId - the Source-ID