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

cim:Jumper support #3235

Merged
merged 9 commits into from
Dec 4, 2024
Merged

cim:Jumper support #3235

merged 9 commits into from
Dec 4, 2024

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Nov 29, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No, but a slack user did request it

What kind of change does this PR introduce?
feature

What is the current behavior?
cim:Jumper are ignored at CGMES/cim import

What is the new behavior (if this is a feature change)?
cim:Jumper are imported as disconnectors

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
cgmes/cgmes-model/src/main/resources/CIM16.sparql Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
cgmes/cgmes-conversion/src/test/resources/jumperTest.xml Outdated Show resolved Hide resolved
Comment on lines +121 to +122
} else if (type.contains("jumper")) {
return SwitchKind.DISCONNECTOR;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property bag has for "type" the whole value with the namespace (type -> http://iec.ch/TC57/2013/CIM-schema-cim16#Jumper), but getLocal removes the namespace prefix. In the end, the value we get is exactly the class name. So I guess we could test with "jumper".equals(type) instead.
However, I propose we do it in a separate PR. That way we can change it for all switch types.

flo-dup and others added 4 commits December 3, 2024 16:07
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@olperr1 olperr1 requested a review from rcourtier December 4, 2024 09:26
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup requested a review from rcourtier December 4, 2024 12:59
@flo-dup flo-dup merged commit f235935 into main Dec 4, 2024
8 checks passed
@flo-dup flo-dup deleted the cim_jumper_support branch December 4, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants