Class SumImpl

All Implemented Interfaces:
OpenemsComponent, ModbusSlave, Sum

public class SumImpl extends AbstractOpenemsComponent implements Sum, OpenemsComponent, ModbusSlave
  • Field Details

    • timedata

      protected volatile Timedata timedata
  • Constructor Details

    • SumImpl

      public SumImpl()
  • Method Details

    • getModbusSlaveTable

      public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
      Description copied from interface: ModbusSlave
      Gets the Modbus-Slave-Table for this OpenEMS-Component.
      Specified by:
      getModbusSlaveTable in interface ModbusSlave
      Parameters:
      accessMode - filters the Modbus-Records that should be shown
      Returns:
      the Modbus-Slave-Table
    • deactivate

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

      public void updateChannelsBeforeProcessImage()
      Description copied from interface: Sum
      Update all Channel-Values of this Sum-Component.

      This method is called by the 'Cycle' just before the TOPIC_CYCLE_AFTER_PROCESS_IMAGE event.

      Specified by:
      updateChannelsBeforeProcessImage in interface Sum
    • debugLog

      public String debugLog()
      Description copied from interface: OpenemsComponent
      Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.
      Specified by:
      debugLog in interface OpenemsComponent
      Returns:
      the debug log output