-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make substations optional #1796
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems when you create an equipment from the network, a new fictitious substation is created. In which case the getOptionalSubstation method could return an empty optional?
726a40d
to
72b5318
Compare
Do you mean returning an empty optional when substation is fictitious? It is a bit weird, isn't it? I only created fictitious substations in the default implementation in order not to break the API too much but maybe I should... |
aa9f5c2
to
22b5786
Compare
SonarCloud Quality Gate failed. |
...idm-tck/src/test/java/com/powsybl/iidm/network/tck/AbstractThreeWindingsTransformerTest.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ThreeWindingsTransformer.java
Outdated
Show resolved
Hide resolved
72b5318
to
9062614
Compare
d823c97
to
beb97fd
Compare
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
…er and merging (unchanged in importers) Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
…bstation and transformers without substations must have at least one end in a voltage level without substation Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
beb97fd
to
fa7280b
Compare
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
* Make substation optional (voltage levels can be created from network) * Allow to create transformers from network (substations are optional) * Update the xsd * Update serialization/deserialization of voltage levels in XIIDM * Update serialization/deserialization of transformers in XIIDM * Change: transformers in substation must have all their ends in the substation and transformers without substations must have at least one end in a voltage level without substation * TwoWindingsTransformer.getSubstation() returns an optional * ThreeWindingsTransformer.getSubstation() returns an optional Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
* Make substation optional (voltage levels can be created from network) * Allow to create transformers from network (substations are optional) * Update the xsd * Update serialization/deserialization of voltage levels in XIIDM * Update serialization/deserialization of transformers in XIIDM * Change: transformers in substation must have all their ends in the substation and transformers without substations must have at least one end in a voltage level without substation * TwoWindingsTransformer.getSubstation() returns an optional * ThreeWindingsTransformer.getSubstation() returns an optional Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restNo
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
Substation are mandatory to create voltage levels and transformers.
What is the new behavior (if this is a feature change)?
Substations are optional. You can create voltage levels directly from the network. You can also create transformers directly from the network if and only if at least one end of the transformer is in a voltage level without substation.
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Yes (must be discussed if the API should be really broken or no).