Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a name property to OperationalLimitsGroup #3152

Open
rcourtier opened this issue Sep 23, 2024 · 0 comments
Open

Add a name property to OperationalLimitsGroup #3152

rcourtier opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@rcourtier
Copy link
Member

rcourtier commented Sep 23, 2024

Describe the current behavior

Following #3139, at CGMES import the IIDM OperationalLimitsGroup id is copied from CGMES OperationalLimitSet rdfid. This is neccesary to ensure a strict 1:1 mapping, as well as be able to match limit values update in SSH with limit creation in EQ.
This has however some limitations:

  • The rdfid is not human readable, which makes it possible but not easy to later on select the active set.
  • The limit set name is stored as a property of the identifiable holding the limits. That way the name can be retrieved during CGMES export but it's not directly accessible in the IIDM OperationalLimitsGroup, which makes it cumbersome to manipulate OperationalLimitsGroup in IIDM.

Describe the expected behavior

Add a new property: "name" to IIDM OperationalLimitsGroup, with a setter and a getter.

Optionally, add new methods in the FlowsLimitsHolder interface to support manipulation of OperationalLimitsGroup by name:

  • getSelectedOperationalLimitsGroupName
  • getOperationalLimitsGroupFromName
  • setSelectedOperationalLimitsGroupFromName
  • removeOperationalLimitsGroupFromName

Describe the motivation

That change would facilitate the selection of the active set using the name:

Optional<OperationalLimitsGroup> selectedGroup = branch.getOperationalLimitsGroups1().stream().filter(g -> g.getName().equals("WINTER")).findFirst();
selectedGroup.ifPresent(g -> branch.setSelectedOperationalLimitsGroup1(g.getId()));

Or more simply if the new methods have been added:

branch.setSelectedOperationalLimitsGroup1FromName("WINTER");

Extra Information

See #3162 for making the IIDM OperationalLimitsGroup id globally unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants