-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce contingency parameters extension
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
- Loading branch information
1 parent
613d726
commit 09be168
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
src/main/java/com/powsybl/openloadflow/sa/ContingencyParameters.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,47 @@ | ||
/** | ||
* Copyright (c) 2024, Coreso SA (https://www.coreso.eu/) and TSCNET Services GmbH (https://www.tscnet.eu/) | ||
* 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/. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
package com.powsybl.openloadflow.sa; | ||
|
||
import com.powsybl.commons.extensions.AbstractExtension; | ||
import com.powsybl.contingency.Contingency; | ||
import com.powsybl.loadflow.LoadFlowParameters; | ||
|
||
/** | ||
* @author Valentin Mouradian {@literal <valentin.mouradian at artelys.com>} | ||
*/ | ||
public class ContingencyParameters extends AbstractExtension<Contingency> { | ||
|
||
private boolean distributedSlack; | ||
|
||
private boolean areaInterchangeControl; | ||
|
||
private LoadFlowParameters.BalanceType balanceType; | ||
|
||
public ContingencyParameters(boolean distributedSlack, boolean areaInterchangeControl, LoadFlowParameters.BalanceType balanceType) { | ||
this.distributedSlack = distributedSlack; | ||
this.areaInterchangeControl = areaInterchangeControl; | ||
this.balanceType = balanceType; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "ContingencyParameters"; | ||
} | ||
|
||
public boolean isDistributedSlack() { | ||
return distributedSlack; | ||
} | ||
|
||
public boolean isAreaInterchangeControl() { | ||
return areaInterchangeControl; | ||
} | ||
|
||
public LoadFlowParameters.BalanceType getBalanceType() { | ||
return balanceType; | ||
} | ||
} |
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