Skip to content

Commit 64b7da7

Browse files
use operators and thermalBuses for getThermalStorages
1 parent 12ad549 commit 64b7da7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/edu/ie3/datamodel/io/source/ThermalSource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ public Map<UUID, ThermalStorageInput> getThermalStorages() throws SourceExceptio
152152
public Map<UUID, ThermalStorageInput> getThermalStorages(
153153
Map<UUID, OperatorInput> operators, Map<UUID, ThermalBusInput> thermalBuses)
154154
throws SourceException {
155-
return Stream.of(getCylindricalStorages(), getDomesticHotWaterStorages())
155+
return Stream.of(
156+
getCylindricalStorages(operators, thermalBuses),
157+
getDomesticHotWaterStorages(operators, thermalBuses))
156158
.flatMap(Collection::stream)
157159
.collect(toMap());
158160
}

0 commit comments

Comments
 (0)