20
20
public class CylindricalStorageInput extends ThermalStorageInput {
21
21
/** Available storage volume (typically in m³) */
22
22
private final ComparableQuantity <Volume > storageVolumeLvl ;
23
- /** Minimum permissible storage volume (typically in m³) */
24
- private final ComparableQuantity <Volume > storageVolumeLvlMin ;
25
23
/** Temperature of the inlet (typically in C) */
26
24
private final ComparableQuantity <Temperature > inletTemp ;
27
25
/** Temperature of the outlet (typically in C) */
@@ -38,7 +36,6 @@ public class CylindricalStorageInput extends ThermalStorageInput {
38
36
* @param operationTime operation time of the asset
39
37
* @param bus Thermal bus, a thermal unit is connected to
40
38
* @param storageVolumeLvl Available storage volume
41
- * @param storageVolumeLvlMin Minimum permissible storage volume
42
39
* @param inletTemp Temperature of the inlet
43
40
* @param returnTemp Temperature of the outlet
44
41
* @param c Specific heat capacity of the storage medium
@@ -51,14 +48,12 @@ public CylindricalStorageInput(
51
48
OperationTime operationTime ,
52
49
ThermalBusInput bus ,
53
50
ComparableQuantity <Volume > storageVolumeLvl ,
54
- ComparableQuantity <Volume > storageVolumeLvlMin ,
55
51
ComparableQuantity <Temperature > inletTemp ,
56
52
ComparableQuantity <Temperature > returnTemp ,
57
53
ComparableQuantity <SpecificHeatCapacity > c ,
58
54
ComparableQuantity <Power > pThermalMax ) {
59
55
super (uuid , id , operator , operationTime , bus );
60
56
this .storageVolumeLvl = storageVolumeLvl .to (StandardUnits .VOLUME );
61
- this .storageVolumeLvlMin = storageVolumeLvlMin .to (StandardUnits .VOLUME );
62
57
this .inletTemp = inletTemp .to (StandardUnits .TEMPERATURE );
63
58
this .returnTemp = returnTemp .to (StandardUnits .TEMPERATURE );
64
59
this .c = c .to (StandardUnits .SPECIFIC_HEAT_CAPACITY );
@@ -70,7 +65,6 @@ public CylindricalStorageInput(
70
65
* @param id Identifier of the thermal unit
71
66
* @param bus Thermal bus, a thermal unit is connected to
72
67
* @param storageVolumeLvl Available storage volume
73
- * @param storageVolumeLvlMin Minimum permissible storage volume
74
68
* @param inletTemp Temperature of the inlet
75
69
* @param returnTemp Temperature of the outlet
76
70
* @param c Specific heat capacity of the storage medium
@@ -81,14 +75,12 @@ public CylindricalStorageInput(
81
75
String id ,
82
76
ThermalBusInput bus ,
83
77
ComparableQuantity <Volume > storageVolumeLvl ,
84
- ComparableQuantity <Volume > storageVolumeLvlMin ,
85
78
ComparableQuantity <Temperature > inletTemp ,
86
79
ComparableQuantity <Temperature > returnTemp ,
87
80
ComparableQuantity <SpecificHeatCapacity > c ,
88
81
ComparableQuantity <Power > pThermalMax ) {
89
82
super (uuid , id , bus );
90
83
this .storageVolumeLvl = storageVolumeLvl .to (StandardUnits .VOLUME );
91
- this .storageVolumeLvlMin = storageVolumeLvlMin .to (StandardUnits .VOLUME );
92
84
this .inletTemp = inletTemp .to (StandardUnits .TEMPERATURE );
93
85
this .returnTemp = returnTemp .to (StandardUnits .TEMPERATURE );
94
86
this .c = c .to (StandardUnits .SPECIFIC_HEAT_CAPACITY );
@@ -99,10 +91,6 @@ public ComparableQuantity<Volume> getStorageVolumeLvl() {
99
91
return storageVolumeLvl ;
100
92
}
101
93
102
- public ComparableQuantity <Volume > getStorageVolumeLvlMin () {
103
- return storageVolumeLvlMin ;
104
- }
105
-
106
94
public ComparableQuantity <Temperature > getInletTemp () {
107
95
return inletTemp ;
108
96
}
@@ -130,7 +118,6 @@ public boolean equals(Object o) {
130
118
if (!(o instanceof CylindricalStorageInput that )) return false ;
131
119
if (!super .equals (o )) return false ;
132
120
return storageVolumeLvl .equals (that .storageVolumeLvl )
133
- && storageVolumeLvlMin .equals (that .storageVolumeLvlMin )
134
121
&& inletTemp .equals (that .inletTemp )
135
122
&& returnTemp .equals (that .returnTemp )
136
123
&& c .equals (that .c )
@@ -139,14 +126,7 @@ public boolean equals(Object o) {
139
126
140
127
@ Override
141
128
public int hashCode () {
142
- return Objects .hash (
143
- super .hashCode (),
144
- storageVolumeLvl ,
145
- storageVolumeLvlMin ,
146
- inletTemp ,
147
- returnTemp ,
148
- c ,
149
- pThermalMax );
129
+ return Objects .hash (super .hashCode (), storageVolumeLvl , inletTemp , returnTemp , c , pThermalMax ););
150
130
}
151
131
152
132
@ Override
@@ -164,8 +144,6 @@ public String toString() {
164
144
+ getThermalBus ().getUuid ()
165
145
+ ", storageVolumeLvl="
166
146
+ storageVolumeLvl
167
- + ", storageVolumeLvlMin="
168
- + storageVolumeLvlMin
169
147
+ ", inletTemp="
170
148
+ inletTemp
171
149
+ ", returnTemp="
@@ -186,7 +164,6 @@ public static class CylindricalStorageInputCopyBuilder
186
164
extends ThermalStorageInputCopyBuilder <CylindricalStorageInputCopyBuilder > {
187
165
188
166
private ComparableQuantity <Volume > storageVolumeLvl ;
189
- private ComparableQuantity <Volume > storageVolumeLvlMin ;
190
167
private ComparableQuantity <Temperature > inletTemp ;
191
168
private ComparableQuantity <Temperature > returnTemp ;
192
169
private ComparableQuantity <SpecificHeatCapacity > c ;
@@ -195,7 +172,6 @@ public static class CylindricalStorageInputCopyBuilder
195
172
private CylindricalStorageInputCopyBuilder (CylindricalStorageInput entity ) {
196
173
super (entity );
197
174
this .storageVolumeLvl = entity .getStorageVolumeLvl ();
198
- this .storageVolumeLvlMin = entity .getStorageVolumeLvlMin ();
199
175
this .inletTemp = entity .getInletTemp ();
200
176
this .returnTemp = entity .getReturnTemp ();
201
177
this .c = entity .getC ();
@@ -208,12 +184,6 @@ public CylindricalStorageInputCopyBuilder storageVolumeLvl(
208
184
return this ;
209
185
}
210
186
211
- public CylindricalStorageInputCopyBuilder storageVolumeLvlMin (
212
- ComparableQuantity <Volume > storageVolumeLvlMin ) {
213
- this .storageVolumeLvlMin = storageVolumeLvlMin ;
214
- return this ;
215
- }
216
-
217
187
public CylindricalStorageInputCopyBuilder inletTemp (ComparableQuantity <Temperature > inletTemp ) {
218
188
this .inletTemp = inletTemp ;
219
189
return this ;
@@ -238,8 +208,7 @@ public CylindricalStorageInputCopyBuilder pThermalMax(ComparableQuantity<Power>
238
208
@ Override
239
209
public CylindricalStorageInputCopyBuilder scale (Double factor ) {
240
210
storageVolumeLvl (storageVolumeLvl .multiply (factor ));
241
- storageVolumeLvlMin (storageVolumeLvlMin .multiply (factor ));
242
- pThermalMax (pThermalMax .multiply (factor ));
211
+ pThermalMax (pThermalMax .multiply (factor ));
243
212
return this ;
244
213
}
245
214
@@ -252,7 +221,6 @@ public CylindricalStorageInput build() {
252
221
getOperationTime (),
253
222
getThermalBus (),
254
223
storageVolumeLvl ,
255
- storageVolumeLvlMin ,
256
224
inletTemp ,
257
225
returnTemp ,
258
226
c ,
0 commit comments