Please check if the PR fulfills these requirements
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
Does this PR already have an issue describing the problem?
Fixes #991
Does this PR introduce a breaking change or deprecate an API?
[x] Yes
[ ] No
If yes, please check if the following requirements are fulfilled
[x] The Breaking Change or Deprecated label has been added
[x] The migration steps are described in the following section
What changes might users need to make in their application due to this PR? (migration steps)
The OnAngleConstraint, OnFlowConstraint and OnVoltageConstraint usage rules (and their respective adders) have been removed and replaced by a single OnConstraint usage rule that acts as a generified version of these 3 previous usage rules.
JSON CRAC verison is now 2.4. For JSON CRAC files with version <= 2.3, "onAngleConstraintUsageRules", "onFlowConstraintUsageRules" and "onVoltageConstraintUsageRules" are still supported by the CRAC deserializer but will be imported as OnConstraint usage rules in the Java API.
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem? Fixes #991
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps) The
OnAngleConstraint
,OnFlowConstraint
andOnVoltageConstraint
usage rules (and their respective adders) have been removed and replaced by a singleOnConstraint
usage rule that acts as a generified version of these 3 previous usage rules.JSON CRAC verison is now 2.4. For JSON CRAC files with version <= 2.3,
"onAngleConstraintUsageRules"
,"onFlowConstraintUsageRules"
and"onVoltageConstraintUsageRules"
are still supported by the CRAC deserializer but will be imported asOnConstraint
usage rules in the Java API.