Class WeightsUtil
java.lang.Object
io.openems.edge.ess.core.power.data.WeightsUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
adjustSortingByWeights
(List<Inverter> inverters) Adjust the sorting of Inverters by weights.static void
sortByWeights
(List<Inverter> inverters) Sorts the list of Inverters by their weights descending.static void
updateWeightsFromSoc
(List<Inverter> inverters, List<ManagedSymmetricEss> esss) Sets the weight of each Inverter according to the SoC of its ESS.
-
Constructor Details
-
WeightsUtil
public WeightsUtil()
-
-
Method Details
-
updateWeightsFromSoc
Sets the weight of each Inverter according to the SoC of its ESS.- Parameters:
inverters
- a List of invertersesss
- list ofManagedSymmetricEss
s
-
sortByWeights
Sorts the list of Inverters by their weights descending.- Parameters:
inverters
- a List of inverters
-
adjustSortingByWeights
Adjust the sorting of Inverters by weights.This is different to 'invertersSortByWeights()' in that it tries to avoid resorting the entire list all the time. Instead it only adjusts the list slightly.
- Parameters:
inverters
- a List of inverters
-