Class ApplyPowerHandler


  • public class ApplyPowerHandler
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(AbstractGoodWe goodWe, int setActivePower, ControlMode controlMode, Value<java.lang.Integer> gridActivePower, Value<java.lang.Integer> essActivePower, Value<java.lang.Integer> maxAcImport, Value<java.lang.Integer> maxAcExport, boolean isPidEnabled)
      Apply the desired Active-Power Set-Point by setting the appropriate EMS_POWER_SET and EMS_POWER_MODE settings.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplyPowerHandler

        public ApplyPowerHandler()
    • Method Detail

      • apply

        public void apply​(AbstractGoodWe goodWe,
                          int setActivePower,
                          ControlMode controlMode,
                          Value<java.lang.Integer> gridActivePower,
                          Value<java.lang.Integer> essActivePower,
                          Value<java.lang.Integer> maxAcImport,
                          Value<java.lang.Integer> maxAcExport,
                          boolean isPidEnabled)
                   throws OpenemsError.OpenemsNamedException
        Apply the desired Active-Power Set-Point by setting the appropriate EMS_POWER_SET and EMS_POWER_MODE settings.
        Parameters:
        goodWe - the GoodWe - either Battery-Inverter or ESS
        setActivePower - the Active-Power Set-Point
        controlMode - the ControlMode to handle the different EmsPowerMode for the GoodWe battery inverter
        gridActivePower - the grid active power
        essActivePower - the ESS active power
        maxAcImport - the max AC import power
        maxAcExport - the max AC export power
        isPidEnabled - if PID Filter is enabled
        Throws:
        OpenemsError.OpenemsNamedException - on error