diff options
| author | Dante Niewenhuis <d.niewenhuis@hotmail.com> | 2025-03-14 15:33:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-14 15:33:42 +0100 |
| commit | 7dc2639a7fcdf51ef789f4af2e3afff11438be6e (patch) | |
| tree | 9a67f432f1aa31e57b20471b6cca61e01ccdea70 /opendc-simulator/opendc-simulator-flow/src | |
| parent | 5ec41d49b497010783d25bf13bc042d3e76824e3 (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')
| -rw-r--r-- | opendc-simulator/opendc-simulator-flow/src/main/java/org/opendc/simulator/engine/graph/FlowDistributor.java | 2 |
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) { |
