-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_tck_tests_finding_terminals
- Loading branch information
Showing
76 changed files
with
1,132 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
push: | ||
branches: | ||
- 'main' | ||
- 'release-v**' | ||
tags: | ||
- 'v[0-9]*' | ||
pull_request: | ||
|
||
jobs: | ||
|
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,18 @@ | ||
name: Patch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branchRef: | ||
description: 'Patch branch (format: release-vX.Y.Z)' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
run-patch: | ||
uses: powsybl/github-ci/.github/workflows/patch-backend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5 | ||
with: | ||
githubappId: ${{ vars.POWSYBL_ACTIONS_APPID }} | ||
branchRef: ${{ github.event.inputs.branchRef }} | ||
secrets: | ||
githubappPrivateKey: ${{ secrets.POWSYBL_ACTIONS_SECRET }} |
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,21 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionType: | ||
description: 'Version type increment (major | minor)' | ||
required: true | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
|
||
jobs: | ||
run-release: | ||
uses: powsybl/github-ci/.github/workflows/release-backend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5 | ||
with: | ||
githubappId: ${{ vars.POWSYBL_ACTIONS_APPID }} | ||
versionType: ${{ github.event.inputs.versionType }} | ||
secrets: | ||
githubappPrivateKey: ${{ secrets.POWSYBL_ACTIONS_SECRET }} |
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
32 changes: 0 additions & 32 deletions
32
...l/src/main/java/com/powsybl/network/store/iidm/impl/AbstractHvdcConverterStationImpl.java
This file was deleted.
Oops, something went wrong.
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
53 changes: 53 additions & 0 deletions
53
...m-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractRegulatingEquipment.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,53 @@ | ||
/** | ||
* 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.network.store.iidm.impl; | ||
|
||
import com.powsybl.iidm.network.Injection; | ||
import com.powsybl.iidm.network.Terminal; | ||
import com.powsybl.iidm.network.ValidationUtil; | ||
import com.powsybl.network.store.model.AbstractRegulatingEquipmentAttributes; | ||
import com.powsybl.network.store.model.InjectionAttributes; | ||
import com.powsybl.network.store.model.Resource; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* @author Etienne Lesot <etienne.lesot at rte-france.com> | ||
*/ | ||
@Setter | ||
@Getter | ||
public abstract class AbstractRegulatingEquipment<I extends Injection<I>, D extends InjectionAttributes> extends AbstractInjectionImpl<I, D> implements Injection<I> { | ||
|
||
protected final RegulatingPoint<I, D> regulatingPoint; | ||
|
||
protected AbstractRegulatingEquipment(NetworkObjectIndex index, Resource<D> resource) { | ||
super(index, resource); | ||
regulatingPoint = new RegulatingPoint<>(index, this, AbstractRegulatingEquipmentAttributes.class::cast); | ||
} | ||
|
||
// should be setRegulatingTerminal but there is already a method with the same name in the regulating equipments | ||
protected void setRegTerminal(Terminal regulatingTerminal) { | ||
ValidationUtil.checkRegulatingTerminal(this, regulatingTerminal, getNetwork()); | ||
if (regulatingTerminal instanceof TerminalImpl<?>) { | ||
regulatingPoint.setRegulatingTerminal((TerminalImpl<?>) regulatingTerminal); | ||
} else { | ||
regulatingPoint.setRegulatingTerminalAsLocalTerminalAndRemoveRegulation(); | ||
} | ||
} | ||
|
||
public Terminal getRegulatingTerminal() { | ||
return regulatingPoint.getRegulatingTerminal(); | ||
} | ||
|
||
public Boolean isRegulating() { | ||
return regulatingPoint.isRegulating(); | ||
} | ||
|
||
public void setRegulating(boolean regulating) { | ||
regulatingPoint.setRegulating(regulating); | ||
} | ||
} |
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
Oops, something went wrong.