-
Notifications
You must be signed in to change notification settings - Fork 7
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
Csa 25 voltage ra in crac api #775
Conversation
# Conflicts: # data/crac-io/crac-io-json/src/test/java/com/farao_community/farao/data/crac_io_json/JsonRetrocompatibilityTest.java
...data/crac_creation/creator/cim/crac_creator/remedial_action/RemedialActionSeriesCreator.java
Outdated
Show resolved
Hide resolved
.../farao/data/crac_creation/creator/cim/parameters/JsonVoltageCnecsCreationParametersTest.java
Show resolved
Hide resolved
...on/src/main/java/com/farao_community/farao/data/crac_io_json/JsonSerializationConstants.java
Outdated
Show resolved
Hide resolved
.../farao_community/farao/data/crac_io_json/deserializers/HvdcRangeActionArrayDeserializer.java
Outdated
Show resolved
Hide resolved
...ao_community/farao/data/crac_io_json/deserializers/OnVoltageConstraintArrayDeserializer.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/com/farao_community/farao/data/crac_io_json/JsonRetrocompatibilityTest.java
Outdated
Show resolved
Hide resolved
...rac-impl/src/main/java/com/farao_community/farao/data/crac_impl/OnVoltageConstraintImpl.java
Outdated
Show resolved
Hide resolved
...impl/src/test/java/com/farao_community/farao/data/crac_impl/OnVoltageConstraintImplTest.java
Outdated
Show resolved
Hide resolved
…by MarthinBelthle
...src/test/java/com/farao_community/farao/data/crac_impl/OnVoltageConstraintAdderImplTest.java
Outdated
Show resolved
Hide resolved
|
||
@Test | ||
void testOutageException() { | ||
OnVoltageConstraintAdder adder = remedialActionAdder.newOnVoltageConstraintUsageRule().withInstant(Instant.OUTAGE).withVoltageCnec("cnec2stateCurativeContingency1"); |
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 as previous comment, you can use OnVoltageConstraintAdder<NetworkActionAdder> adder
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.
done
if (instant.equals(Instant.PREVENTIVE)) { | ||
owner.getCrac().addPreventiveState(); | ||
} | ||
// TODO: when Instant.AUTO will be handled by FARAO, consider adding some states in the CRAC 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.
This TODO is not relevant anymore (left-over from 2021).
Could you remove it from this file and also these ones please: OnInstantAdderImpl
, OnFlowConstraintAdderImpl
, OnAngleConstraintAdderImpl
?
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.
done
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.
In this file, in the method checkOnConstraintUsageRules
, could you update the doc to add OnVoltageConstraint
(line 84 to 86).
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.
done
Once the comments have been resolved and the branch rebased with master, it can be merged 🙂 |
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 restUser story CSA-25
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Implement voltage remedial actions in crac API
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)