Class EvcsClusterPeakShavingImpl

java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.evcs.cluster.EvcsClusterPeakShavingImpl
All Implemented Interfaces:
OpenemsComponent, Controller, Evcs, MetaEvcs, EvcsClusterPeakShaving, org.osgi.service.event.EventHandler

public class EvcsClusterPeakShavingImpl extends AbstractOpenemsComponent implements MetaEvcs, OpenemsComponent, Evcs, org.osgi.service.event.EventHandler, EvcsClusterPeakShaving, Controller
  • Constructor Details

    • EvcsClusterPeakShavingImpl

      public EvcsClusterPeakShavingImpl()
  • Method Details

    • addEvcs

      protected void addEvcs(Evcs evcs)
    • removeEvcs

      protected void removeEvcs(Evcs evcs)
    • 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
    • limitEvcss

      protected void limitEvcss()
      Depending on the excess power, the EVCSs will be charged. Distributing the maximum allowed charge distribution power (given by the implementation) to each evcs.
    • getSortedEvcss

      public List<Evcs> getSortedEvcss()
      Sorted list of the EVCSs in the cluster.

      List of EVCSs that should be considered in the cluster sorted by prioritisation.

      Returns:
      Sorted EVCS list
    • getMaximumPowerToDistribute

      public int getMaximumPowerToDistribute()
      Maximum power to distribute.

      Calculate the maximum power to distribute, like excess power or excess power + storage.

      Returns:
      Maximum Power in Watt
    • getAvailableGridPower

      public int getAvailableGridPower()
      Maximum available grid power.

      Calculate the maximum available power from the grid. This value is used as a fallback option when it becomes negative.

      Returns:
      Current grid power in W
    • logInfoInDebugmode

      protected void logInfoInDebugmode(org.slf4j.Logger log, String string)
    • run

      public void run() throws OpenemsError.OpenemsNamedException
      Description copied from interface: Controller
      Executes the Controller logic.
      Specified by:
      run in interface Controller
      Throws:
      OpenemsError.OpenemsNamedException - on error