@@ -60,6 +60,7 @@ public class LimitViolation extends AbstractExtendable<LimitViolation> {
6060 * @param limitReduction The limit reduction factor used for violation detection.
6161 * @param value The actual value of the physical value which triggered the detection of a violation.
6262 * @param side The side of the equipment where the violation occurred. May be {@code null} for non-branch, non-three windings transformer equipments.
63+ * @param voltageLocation Detailed information about the location of the violation.
6364 */
6465 public LimitViolation (String subjectId , @ Nullable String subjectName , String operationalLimitsGroupId , LimitViolationType limitType , @ Nullable String limitName , int acceptableDuration ,
6566 double limit , double limitReduction , double value , @ Nullable ThreeSides side , @ Nullable ViolationLocation voltageLocation ) {
@@ -90,7 +91,9 @@ public LimitViolation(String subjectId, @Nullable String subjectName, String ope
9091 * @param limitReduction The limit reduction factor used for violation detection.
9192 * @param value The actual value of the physical value which triggered the detection of a violation.
9293 * @param side The side of the equipment where the violation occurred. May be {@code null} for non-branch, non-three windings transformer equipments.
94+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
9395 */
96+ @ Deprecated (since = "7.3.0" , forRemoval = true )
9497 public LimitViolation (String subjectId , @ Nullable String subjectName , LimitViolationType limitType , @ Nullable String limitName , int acceptableDuration ,
9598 double limit , double limitReduction , double value , @ Nullable ThreeSides side , @ Nullable ViolationLocation voltageLocation ) {
9699 this (subjectId , subjectName , "" , limitType , limitName , acceptableDuration , limit , limitReduction , value , side , voltageLocation );
@@ -110,7 +113,9 @@ public LimitViolation(String subjectId, @Nullable String subjectName, LimitViola
110113 * @param limitReduction The limit reduction factor used for violation detection.
111114 * @param value The actual value of the physical value which triggered the detection of a violation.
112115 * @param side The side of the equipment where the violation occurred. May be {@code null} for non-branch, non-three windings transformer equipments.
116+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
113117 */
118+ @ Deprecated (since = "7.3.0" , forRemoval = true )
114119 public LimitViolation (String subjectId , @ Nullable String subjectName , LimitViolationType limitType , @ Nullable String limitName , int acceptableDuration ,
115120 double limit , double limitReduction , double value , @ Nullable ThreeSides side ) {
116121 this (subjectId , subjectName , limitType , limitName , acceptableDuration , limit , limitReduction , value , side , null );
@@ -129,7 +134,9 @@ public LimitViolation(String subjectId, @Nullable String subjectName, LimitViola
129134 * @param limit The value of the limit which has been violated.
130135 * @param limitReduction The limit reduction factor used for violation detection.
131136 * @param value The actual value of the physical value which triggered the detection of a violation.
137+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
132138 */
139+ @ Deprecated (since = "7.3.0" , forRemoval = true )
133140 public LimitViolation (String subjectId , @ Nullable String subjectName , LimitViolationType limitType , @ Nullable String limitName , int acceptableDuration ,
134141 double limit , double limitReduction , double value ) {
135142 this (subjectId , subjectName , limitType , limitName , acceptableDuration , limit , limitReduction , value , (ThreeSides ) null );
@@ -150,7 +157,9 @@ public LimitViolation(String subjectId, @Nullable String subjectName, LimitViola
150157 * @param limitReduction The limit reduction factor used for violation detection.
151158 * @param value The actual value of the physical value which triggered the detection of a violation.
152159 * @param side The side of the equipment where the violation occurred. May be {@code null} for non-branch, non-three windings transformer equipments.
160+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
153161 */
162+ @ Deprecated (since = "7.3.0" , forRemoval = true )
154163 public LimitViolation (String subjectId , @ Nullable String subjectName , LimitViolationType limitType , @ Nullable String limitName , int acceptableDuration ,
155164 double limit , double limitReduction , double value , TwoSides side ) {
156165 this (subjectId , subjectName , limitType , limitName , acceptableDuration , limit , limitReduction , value , Objects .requireNonNull (side ).toThreeSides ());
@@ -169,7 +178,9 @@ public LimitViolation(String subjectId, @Nullable String subjectName, LimitViola
169178 * @param limitReduction The limit reduction factor used for violation detection.
170179 * @param value The actual value of the physical value which triggered the detection of a violation.
171180 * @param side The side of the equipment where the violation occurred. May be {@code null} for non-branch, non-three windings transformer equipments.
181+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
172182 */
183+ @ Deprecated (since = "7.3.0" , forRemoval = true )
173184 public LimitViolation (String subjectId , LimitViolationType limitType , String limitName , int acceptableDuration ,
174185 double limit , double limitReduction , double value , TwoSides side ) {
175186 this (subjectId , null , limitType , limitName , acceptableDuration , limit , limitReduction , value , Objects .requireNonNull (side ).toThreeSides ());
@@ -187,7 +198,9 @@ public LimitViolation(String subjectId, LimitViolationType limitType, String lim
187198 * @param limit The value of the limit which has been violated.
188199 * @param limitReduction The limit reduction factor used for violation detection.
189200 * @param value The actual value of the physical value which triggered the detection of a violation.
201+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
190202 */
203+ @ Deprecated (since = "7.3.0" , forRemoval = true )
191204 public LimitViolation (String subjectId , LimitViolationType limitType , String limitName , int acceptableDuration ,
192205 double limit , double limitReduction , double value ) {
193206 this (subjectId , null , limitType , limitName , acceptableDuration , limit , limitReduction , value , (ThreeSides ) null );
@@ -206,7 +219,7 @@ public LimitViolation(String subjectId, LimitViolationType limitType, String lim
206219 * @param voltageLocation Detailed information about the location of the violation.
207220 */
208221 public LimitViolation (String subjectId , LimitViolationType limitType , double limit , double limitReduction , double value , ViolationLocation voltageLocation ) {
209- this (subjectId , null , limitType , null , Integer .MAX_VALUE , limit , limitReduction , value , null , voltageLocation );
222+ this (subjectId , null , null , limitType , null , Integer .MAX_VALUE , limit , limitReduction , value , null , voltageLocation );
210223 }
211224
212225 /**
@@ -220,7 +233,9 @@ public LimitViolation(String subjectId, LimitViolationType limitType, double lim
220233 * @param limit The value of the limit which has been violated.
221234 * @param limitReduction The limit reduction factor used for violation detection.
222235 * @param value The actual value of the physical value which triggered the detection of a violation.
236+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
223237 */
238+ @ Deprecated (since = "7.3.0" , forRemoval = true )
224239 public LimitViolation (String subjectId , String subjectName , LimitViolationType limitType , double limit , double limitReduction , double value ) {
225240 this (subjectId , subjectName , limitType , null , Integer .MAX_VALUE , limit , limitReduction , value , null , null );
226241 }
@@ -237,7 +252,9 @@ public LimitViolation(String subjectId, String subjectName, LimitViolationType l
237252 * @param limitReduction The limit reduction factor used for violation detection.
238253 * @param value The actual value of the physical value which triggered the detection of a violation.
239254 * @param voltageLocation Detailed information about the location of the violation.
255+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
240256 */
257+ @ Deprecated (since = "7.3.0" , forRemoval = true )
241258 public LimitViolation (String subjectId , String subjectName , LimitViolationType limitType , double limit , double limitReduction , double value , ViolationLocation voltageLocation ) {
242259 this (subjectId , subjectName , limitType , null , Integer .MAX_VALUE , limit , limitReduction , value , null , voltageLocation );
243260 }
@@ -252,11 +269,17 @@ public LimitViolation(String subjectId, String subjectName, LimitViolationType l
252269 * @param limit The value of the limit which has been violated.
253270 * @param limitReduction The limit reduction factor used for violation detection.
254271 * @param value The actual value of the physical value which triggered the detection of a violation.
272+ * @deprecated use {@link LimitViolationBuilder} or {@link LimitViolation#LimitViolation(String, String, String, LimitViolationType, String, int, double, double, double, ThreeSides, ViolationLocation)}
255273 */
274+ @ Deprecated (since = "7.3.0" , forRemoval = true )
256275 public LimitViolation (String subjectId , LimitViolationType limitType , double limit , double limitReduction , double value ) {
257276 this (subjectId , null , limitType , null , Integer .MAX_VALUE , limit , limitReduction , value , null , null );
258277 }
259278
279+ public static LimitViolationBuilder builder () {
280+ return new LimitViolationBuilder ();
281+ }
282+
260283 /**
261284 * The identifier of the network equipment on which the violation occurred.
262285 *
0 commit comments