-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import TapPositionAction from TapChanger (#1126)
* Import TapPositionAction from TapChanger Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * Author + copyright Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
- Loading branch information
Showing
18 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...csa-profiles/src/main/java/com/powsybl/openrao/data/cracio/csaprofiles/nc/TapChanger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.openrao.data.cracio.csaprofiles.nc; | ||
|
||
import com.powsybl.openrao.data.cracio.csaprofiles.craccreator.constants.CsaProfileConstants; | ||
import com.powsybl.triplestore.api.PropertyBag; | ||
|
||
/** | ||
* @author Thomas Bouquet {@literal <thomas.bouquet at rte-france.com>} | ||
*/ | ||
public record TapChanger(String mrid, String powerTransformer) implements NCObject { | ||
public static TapChanger fromPropertyBag(PropertyBag propertyBag) { | ||
return new TapChanger(propertyBag.getId(CsaProfileConstants.TAP_CHANGER), propertyBag.getId(CsaProfileConstants.POWER_TRANSFORMER)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+12.9 KB
(1100%)
.../crac-io/crac-io-csa-profiles/src/test/resources/profiles/remedialactions/AlignedPSTs.zip
Binary file not shown.
Binary file modified
BIN
-15.3 KB
(55%)
.../crac-io-csa-profiles/src/test/resources/profiles/remedialactions/AutoRemedialActions.zip
Binary file not shown.
Binary file modified
BIN
+127 Bytes
(100%)
...files/src/test/resources/profiles/remedialactions/CSA-92_PST-SPS_with_0_sec_threshold.zip
Binary file not shown.
Binary file modified
BIN
+123 Bytes
(100%)
...iles/src/test/resources/profiles/remedialactions/CSA-92_PST-SPS_with_60_sec_threshold.zip
Binary file not shown.
Binary file modified
BIN
-7.73 KB
(65%)
...c-io/crac-io-csa-profiles/src/test/resources/profiles/remedialactions/PSTRangeActions.zip
Binary file not shown.
Binary file modified
BIN
+12.9 KB
(590%)
...c-io/crac-io-csa-profiles/src/test/resources/profiles/remedialactions/RemedialActions.zip
Binary file not shown.
Binary file modified
BIN
-11 KB
(59%)
data/crac-io/crac-io-csa-profiles/src/test/resources/profiles/remedialactions/UsageRules.zip
Binary file not shown.
Binary file modified
BIN
+9.99 KB
(320%)
...-io/crac-io-csa-profiles/src/test/resources/profiles/ssi/SSI-4_RestrictPSTActionRange.zip
Binary file not shown.
Binary file modified
BIN
+10.1 KB
(330%)
.../crac-io-csa-profiles/src/test/resources/profiles/ssi/SSI-8_ActivateTapPositionAction.zip
Binary file not shown.
Binary file modified
BIN
+10.1 KB
(330%)
...rac-io-csa-profiles/src/test/resources/profiles/ssi/SSI-9_DeactivateTapPositionAction.zip
Binary file not shown.