Skip to content

Commit

Permalink
Clean code: control areas are now imported, method addCgmesSshControl…
Browse files Browse the repository at this point in the history
…Areas can be deleted (#1777)

Signed-off-by: RALAMBOTIANA MIORA <[email protected]>
  • Loading branch information
miovd committed Jul 7, 2021
1 parent 24954fb commit 71f7200
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public Network convert() {
assignNetworkProperties(context);
addCgmesSvMetadata(network, context);
addCgmesSshMetadata(network, context);
addCgmesSshControlAreas(network, context);
addCimCharacteristics(network);
if (context.nodeBreaker() && context.config().createCgmesExportMapping) {
CgmesIidmMappingAdder mappingAdder = network.newExtension(CgmesIidmMappingAdder.class);
Expand Down Expand Up @@ -361,14 +360,6 @@ private int readVersion(PropertyBags propertyBags, Context context) {
}
}

private void addCgmesSshControlAreas(Network network, Context context) {
PropertyBags sshControlAreas = cgmes.controlAreas();
if (sshControlAreas != null && !sshControlAreas.isEmpty()) {
// TODO Develop conversion after IIDM modelling of control areas or define extension
context.ignored("ControlAreas", "Unsupported in current version");
}
}

private void addCimCharacteristics(Network network) {
if (cgmes instanceof CgmesModelTripleStore) {
network.newExtension(CimCharacteristicsAdder.class)
Expand Down

0 comments on commit 71f7200

Please sign in to comment.