powsybl-core
powsybl-core copied to clipboard
InjectionAdder::add
Do you want to request a feature or report a bug? Feature
What is the current behavior?
The add of InjectionAdder
is not defined in the interface but in each implementations.
What is the expected behavior?
Having an add
which would return an Injection
(or a U extends Injection
?).
What is the motivation / use case for changing the behavior?
For creating a bay, we would like to have an InjectionAdder
as parameter of the NetworkModification
to have a single java class for all the injections, but add
cannot be called to create the corresponding injection.
Besides there's not a clear link to an Injection
in the definition of the InjectionAdder
(and to a lesser extent to an Adder
)
Other information
Note that similarly there's no add in IdentifiableAdder
.