-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upgrade_dependencies
- Loading branch information
Showing
6 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...om/farao_community/farao/cse/export_runner/app/configurations/MendrisioConfiguration.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,29 @@ | ||
/* | ||
* Copyright (c) 2023, 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.farao_community.farao.cse.export_runner.app.configurations; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* @author Amira Kahya {@literal <amira.kahya at rte-france.com>} | ||
*/ | ||
@Configuration | ||
public class MendrisioConfiguration { | ||
@Value("${cse-cc-runner.mendrisio.mendrisio-pst-id}") | ||
private String mendrisioPstId; | ||
@Value("${cse-cc-runner.mendrisio.mendrisio-node-id}") | ||
private String mendrisioNodeId; | ||
|
||
public String getMendrisioPstId() { | ||
return mendrisioPstId; | ||
} | ||
|
||
public String getMendrisioNodeId() { | ||
return mendrisioNodeId; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
...in/java/com/farao_community/farao/cse/export_runner/app/services/MerchantLineService.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,33 @@ | ||
/* | ||
* Copyright (c) 2023, 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.farao_community.farao.cse.export_runner.app.services; | ||
|
||
import com.farao_community.farao.cse.export_runner.app.configurations.MendrisioConfiguration; | ||
import com.farao_community.farao.cse.network_processing.ucte_pst_change.UctePstProcessor; | ||
import com.powsybl.iidm.network.Network; | ||
import org.springframework.stereotype.Service; | ||
|
||
/** | ||
* @author Amira Kahya {@literal <amira.kahya at rte-france.com>} | ||
*/ | ||
@Service | ||
public class MerchantLineService { | ||
|
||
private final UctePstProcessor uctePstProcessor; | ||
|
||
public MerchantLineService(MendrisioConfiguration mendrisioConfiguration) { | ||
|
||
this.uctePstProcessor = new UctePstProcessor( | ||
mendrisioConfiguration.getMendrisioPstId(), | ||
mendrisioConfiguration.getMendrisioNodeId()); | ||
} | ||
|
||
public void setTransformerInActivePowerRegulation(Network network) { | ||
uctePstProcessor.setTransformerInActivePowerRegulation(network); | ||
|
||
} | ||
} |
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