Skip to content

Commit 9088286

Browse files
remove validation for emInput.controllStrategy
1 parent 4bbe628 commit 9088286

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/edu/ie3/datamodel/utils/validation/EnergyManagementValidationUtils.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ private EnergyManagementValidationUtils() {
2424
*
2525
* <ul>
2626
* <li>its control strategy is not null
27-
* <li>its control strategy matches the supported strategies
2827
* </ul>
2928
*
3029
* A "distribution" method, that forwards the check request to specific implementations to fulfill
@@ -44,14 +43,6 @@ private EnergyManagementValidationUtils() {
4443
new InvalidEntityException(
4544
"No control strategy of energy management defined for", energyManagement)));
4645

47-
exceptions.add(
48-
Try.ofVoid(
49-
!(energyManagement.getControlStrategy().equals("PRIORITIZED")
50-
|| energyManagement.getControlStrategy().equals("PROPORTIONAL")),
51-
() ->
52-
new InvalidEntityException(
53-
"Control strategy of energy management system must be one of the following: PRIORITIZED, PROPORTIONAL.",
54-
energyManagement)));
5546

5647
return exceptions;
5748
}

0 commit comments

Comments
 (0)