-
Notifications
You must be signed in to change notification settings - Fork 6
powsybl_4.0.1 #183
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
powsybl_4.0.1 #183
Conversation
Signed-off-by: AbdelHedhili <[email protected]>
a88ca58
to
bed3dd1
Compare
Signed-off-by: AbdelHedhili <[email protected]>
bed3dd1
to
26b24cb
Compare
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
...rk-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/AbstractBranchImpl.java
Show resolved
Hide resolved
} | ||
|
||
private void checkTemporaryLimits() { | ||
// check temporary limits are ok and are consistents with permanent |
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.
is this copy pasted from powsybl-core ? Can we avoid it (maybe in another PR ?)
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 from powsybl-core indeed but why should I remove it, it makes sense to have the same check no ?
.temporaryLimits(temporaryLimits) | ||
.build(); | ||
owner.setActivePowerLimits(side, attributes); | ||
return new ActivePowerLimitsImpl(owner, attributes); |
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.
This object should also be the same as the one returned from the owner
...store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ActivePowerLimitsImpl.java
Show resolved
Hide resolved
...store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ActivePowerLimitsImpl.java
Show resolved
Hide resolved
} | ||
|
||
private void checkTemporaryLimits() { | ||
// check temporary limits are ok and are consistents with permanent |
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 remark
...idm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ApparentPowerLimitsAdderImpl.java
Show resolved
Hide resolved
...ore-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ApparentPowerLimitsImpl.java
Show resolved
Hide resolved
...ore-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ApparentPowerLimitsImpl.java
Show resolved
Hide resolved
public <E extends Extension<Battery>> E getExtension(Class<? super E> type) { | ||
E extension = super.getExtension(type); | ||
if (type == ActivePowerControl.class) { | ||
extension = createActivePowerControlExtension(); |
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.
is it ok to create everytime ? Also the extesnion is already assigned in createActivePowerControlExtension, only if not null... why the two places ?
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.
I don't get the problem here. What do you mean with the 2 places ?
public <E extends Extension<Battery>> E getExtensionByName(String name) { | ||
E extension = super.getExtensionByName(name); | ||
if (name.equals("activePowerControl")) { | ||
extension = createActivePowerControlExtension(); |
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 remark
@Override | ||
public <E extends Extension<Battery>> Collection<E> getExtensions() { | ||
Collection<E> extensions = super.getExtensions(); | ||
E extension = createActivePowerControlExtension(); |
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 remark
...pl/src/main/java/com/powsybl/network/store/iidm/impl/BranchToInjectionAttributesAdapter.java
Show resolved
Hide resolved
...-impl/src/main/java/com/powsybl/network/store/iidm/impl/BusbarSectionToInjectionAdapter.java
Outdated
Show resolved
Hide resolved
network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/DanglingLineImpl.java
Show resolved
Hide resolved
network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/DanglingLineImpl.java
Show resolved
Hide resolved
@Override | ||
public CurrentLimitsAdder newCurrentLimits() { | ||
return new CurrentLimitsAdderImpl<>(null, this); | ||
} | ||
|
||
@Override | ||
public ApparentPowerLimitsAdder newApparentPowerLimits() { | ||
return new ApparentPowerLimitsAdderImpl<>(null, this); |
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 remark
|
||
@Override | ||
public ActivePowerLimitsAdder newActivePowerLimits() { | ||
return new ActivePowerLimitsAdderImpl<>(null, this); |
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 remark.. I think I'm going to stop here for these kind of remarks ^^
network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/TieLineAdderImpl.java
Outdated
Show resolved
Hide resolved
...mpl/src/main/java/com/powsybl/network/store/iidm/impl/extensions/ActivePowerControlImpl.java
Outdated
Show resolved
Hide resolved
...rk-store-model/src/main/java/com/powsybl/network/store/model/ShuntCompensatorAttributes.java
Outdated
Show resolved
Hide resolved
...tore-model/src/main/java/com/powsybl/network/store/model/StaticVarCompensatorAttributes.java
Outdated
Show resolved
Hide resolved
Signed-off-by: AbdelHedhili <[email protected]>
network-store-model/src/main/java/com/powsybl/network/store/model/InjectionAttributes.java
Outdated
Show resolved
Hide resolved
@AbdelHedhili there is missing licence and authorship, could you add it? |
...idm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ThreeWindingsTransformerImpl.java
Outdated
Show resolved
Hide resolved
...om/powsybl/network/store/iidm/impl/ThreeWindingsTransformerToInjectionAttributesAdapter.java
Outdated
Show resolved
Hide resolved
network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/TieLineAdderImpl.java
Show resolved
Hide resolved
.../powsybl/network/store/iidm/impl/extensions/ThreeWindingsTransformerPhaseAngleClockImpl.java
Show resolved
Hide resolved
.../powsybl/network/store/iidm/impl/extensions/ThreeWindingsTransformerPhaseAngleClockImpl.java
Show resolved
Hide resolved
...idm-impl/src/main/java/com/powsybl/network/store/iidm/impl/ThreeWindingsTransformerImpl.java
Show resolved
Hide resolved
3355f90
to
2080732
Compare
Signed-off-by: AbdelHedhili <[email protected]>
2080732
to
47afdb2
Compare
SonarCloud Quality Gate failed. |
Signed-off-by: AbdelHedhili [email protected]
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)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)
uses powsybl 3.8.0
What is the new behavior (if this is a feature change)?
uses powsybl 4.0.1