summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-flow/src/main/java/org
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2025-03-14 15:33:42 +0100
committerGitHub <noreply@github.com>2025-03-14 15:33:42 +0100
commit7dc2639a7fcdf51ef789f4af2e3afff11438be6e (patch)
tree9a67f432f1aa31e57b20471b6cca61e01ccdea70 /opendc-simulator/opendc-simulator-flow/src/main/java/org
parent5ec41d49b497010783d25bf13bc042d3e76824e3 (diff)
Added more battery policies (#312)
* some updates * Updates * Added comments and renamed variables * Ran Spotless
Diffstat (limited to 'opendc-simulator/opendc-simulator-flow/src/main/java/org')
-rw-r--r--opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java b/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java
index dcbd79bb..c094560e 100644
--- a/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java
+++ b/opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java
@@ -208,7 +208,7 @@ public class FlowDistributor extends FlowNode implements FlowSupplier, FlowConsu
other.setConsumerIndex(other.getConsumerIndex() - 1);
}
- HashSet newUpdatedDemands = new HashSet<>();
+ HashSet<Integer> newUpdatedDemands = new HashSet<>();
for (int idx_other : this.updatedDemands) {
if (idx_other > idx) {