-
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 'issue-113' into generatorPQ
- Loading branch information
Showing
17 changed files
with
80 additions
and
94 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
26 changes: 1 addition & 25 deletions
26
dynawaltz/src/main/java/com/powsybl/dynawaltz/dynamicmodels/BlackBoxModel.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 |
---|---|---|
@@ -1,37 +1,13 @@ | ||
/** | ||
* Copyright (c) 2022, 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.dynawaltz.dynamicmodels; | ||
|
||
import com.powsybl.dynawaltz.DynaWaltzContext; | ||
import org.apache.commons.lang3.tuple.Pair; | ||
|
||
import javax.xml.stream.XMLStreamException; | ||
import javax.xml.stream.XMLStreamWriter; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Florian Dupuy <florian.dupuy at rte-france.com> | ||
*/ | ||
public interface BlackBoxModel { | ||
String getDynamicModelId(); | ||
|
||
String getParameterSetId(); | ||
|
||
String getLib(); | ||
|
||
void write(XMLStreamWriter writer, DynaWaltzContext context) throws XMLStreamException; | ||
|
||
void writeParameters(XMLStreamWriter writer, DynaWaltzContext context) throws XMLStreamException; | ||
|
||
void writeMacroConnect(XMLStreamWriter writer, DynaWaltzContext context, MacroConnector macroConnector, BlackBoxModel connected) throws XMLStreamException; | ||
|
||
List<Pair<String, String>> getVarsConnect(BlackBoxModel connected); | ||
|
||
List<BlackBoxModel> getModelsConnectedTo(DynaWaltzContext dynaWaltzContext); | ||
|
||
List<Pair<String, String>> getAttributesConnectTo(); | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
dynawaltz/src/main/java/com/powsybl/dynawaltz/dynamicmodels/BlackBoxModelWithDynamicId.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,21 @@ | ||
/** | ||
* Copyright (c) 2022, 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.dynawaltz.dynamicmodels; | ||
|
||
import com.powsybl.dynawaltz.DynaWaltzContext; | ||
|
||
import javax.xml.stream.XMLStreamException; | ||
import javax.xml.stream.XMLStreamWriter; | ||
|
||
/** | ||
* @author Florian Dupuy <florian.dupuy at rte-france.com> | ||
*/ | ||
public interface BlackBoxModelWithDynamicId extends BlackBoxModelWithParameterId { | ||
String getDynamicModelId(); | ||
|
||
void writeParameters(XMLStreamWriter writer, DynaWaltzContext context) throws XMLStreamException; | ||
} |
20 changes: 20 additions & 0 deletions
20
...waltz/src/main/java/com/powsybl/dynawaltz/dynamicmodels/BlackBoxModelWithParameterId.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,20 @@ | ||
package com.powsybl.dynawaltz.dynamicmodels; | ||
|
||
import com.powsybl.dynawaltz.DynaWaltzContext; | ||
import org.apache.commons.lang3.tuple.Pair; | ||
|
||
import javax.xml.stream.XMLStreamException; | ||
import javax.xml.stream.XMLStreamWriter; | ||
import java.util.List; | ||
|
||
public interface BlackBoxModelWithParameterId extends BlackBoxModel { | ||
String getParameterSetId(); | ||
|
||
void write(XMLStreamWriter writer, DynaWaltzContext context) throws XMLStreamException; | ||
|
||
void writeMacroConnect(XMLStreamWriter writer, DynaWaltzContext context, MacroConnector macroConnector, BlackBoxModel connected) throws XMLStreamException; | ||
|
||
List<Pair<String, String>> getVarsConnect(BlackBoxModel connected); | ||
|
||
List<BlackBoxModel> getModelsConnectedTo(DynaWaltzContext dynaWaltzContext); | ||
} |
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
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
4 changes: 2 additions & 2 deletions
4
.../java/com/powsybl/dynawaltz/dynamicmodels/staticid/AbstractBlackBoxModelWithStaticId.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
16 changes: 7 additions & 9 deletions
16
...va/com/powsybl/dynawaltz/dynamicmodels/staticid/network/AbstractNetworkBlackBoxModel.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
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
Oops, something went wrong.