-
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
Add add method to the adders API #2502
Conversation
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
And leave raw parameter for parameter class added Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/HvdcConverterStationAdder.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/InjectionAdder.java
Show resolved
Hide resolved
import com.powsybl.iidm.network.IdentifiableAdder; | ||
import com.powsybl.iidm.network.util.Identifiables; | ||
|
||
/** | ||
* @author Thomas Adam <tadam at silicom.fr> | ||
*/ | ||
abstract class AbstractIdentifiableAdderAdapter<I extends IdentifiableAdder<I>> extends AbstractAdapter<I> implements IdentifiableAdder<I> { | ||
abstract class AbstractIdentifiableAdderAdapter<T extends Identifiable<? super T>, I extends IdentifiableAdder<T, I>> extends AbstractAdapter<I> implements IdentifiableAdder<T, I> { |
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.
Same question as in BranchAdder
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's again because of TieLine
, which makes BranchAdder have the same kind of parameter, and as BranchAdder extends AbstractIdentifiable we need the same here.
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.
After the merge I needed the same for AbstractSimpleIdentifiableXml
iidm/iidm-xml-converter/src/main/java/com/powsybl/iidm/xml/AbstractTransformerXml.java
Outdated
Show resolved
Hide resolved
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>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Only partly: fixes #2227
What kind of change does this PR introduce?
Feature
What is the current behavior?
Adder interfaces do not include the add method
What is the new behavior (if this is a feature change)?
Adder interfaces include the add method
Does this PR introduce a breaking change or deprecate an API? yes
Note that it is a breaking change only for users which have added their own equipments based on the existing interfaces.