Skip to content

Commit dc09d65

Browse files
removes currentLimits1 and currentLimits2 for transfos + TU
Signed-off-by: Mathieu DEHARBE <[email protected]>
1 parent 11a96f9 commit dc09d65

File tree

5 files changed

+0
-132
lines changed

5 files changed

+0
-132
lines changed

src/main/java/org/gridsuite/network/map/dto/definition/twowindingstransformer/TwoWindingsTransformerFormInfos.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ public class TwoWindingsTransformerFormInfos extends ElementInfosWithProperties
5757
@JsonInclude(JsonInclude.Include.NON_NULL)
5858
private Double i2;
5959

60-
// TODO : remove currentLimits1 and 2 to leave only currentLimits when modification is done
61-
@JsonInclude(JsonInclude.Include.NON_EMPTY)
62-
private List<CurrentLimitsData> currentLimits1;
63-
64-
@JsonInclude(JsonInclude.Include.NON_EMPTY)
65-
private List<CurrentLimitsData> currentLimits2;
66-
6760
@JsonInclude(JsonInclude.Include.NON_EMPTY)
6861
private List<CurrentLimitsData> currentLimits;
6962

src/main/java/org/gridsuite/network/map/dto/mapper/TwoWindingsTransformerInfosMapper.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ private static TwoWindingsTransformerFormInfos toFormInfos(Identifiable<?> ident
8282

8383
mergeCurrentLimits(twoWT.getOperationalLimitsGroups1(), twoWT.getOperationalLimitsGroups2(), builder::currentLimits);
8484

85-
buildCurrentLimits(twoWT.getOperationalLimitsGroups1(), builder::currentLimits1);
86-
buildCurrentLimits(twoWT.getOperationalLimitsGroups2(), builder::currentLimits2);
87-
8885
builder.operatingStatus(toOperatingStatus(twoWT));
8986
builder.connectablePosition1(toMapConnectablePosition(twoWT, 1))
9087
.connectablePosition2(toMapConnectablePosition(twoWT, 2));

src/test/resources/2-windings-transformer-map-data.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@
1111
"q1": 12.2,
1212
"p2": 13.33,
1313
"q2": 14.44,
14-
"currentLimits1": [
15-
{
16-
"id" : "limit set 1",
17-
"permanentLimit":750.4,
18-
"temporaryLimits":[{"name":"IT5","acceptableDuration":2087,"value":300}],
19-
"applicability": null
20-
}
21-
],
22-
"currentLimits2": [
23-
{
24-
"id" : "limit set 1",
25-
"permanentLimit":780.6,
26-
"temporaryLimits":[{"name":"N/A","acceptableDuration":664,"value":2147483647},{"name":"IT20","acceptableDuration":961,"value":1200}],
27-
"applicability": null
28-
}
29-
],
3014
"currentLimits": [
3115
{
3216
"id" : "limit set 1",

src/test/resources/line-form-data.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@
88
"q1": 2.2,
99
"p2": 3.33,
1010
"q2": 4.44,
11-
"currentLimits1": [
12-
{
13-
"id" : "limit set 1",
14-
"permanentLimit":700.4,
15-
"temporaryLimits":[{"name":"IT5","acceptableDuration":300,"value":250.0}],
16-
"applicability": null
17-
}
18-
],
19-
"currentLimits2": [
20-
{
21-
"id" : "limit set 1",
22-
"permanentLimit":800.8,
23-
"temporaryLimits":[{"name":"IT20","acceptableDuration":1200,"value":300.0},{"name":"IT10","acceptableDuration":600,"value":200.0}],
24-
"applicability": null
25-
}
26-
],
2711
"currentLimits": [
2812
{
2913
"id" : "limit set 1",

src/test/resources/lines-form-data.json

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,6 @@
99
"q1": 2.2,
1010
"p2": 3.33,
1111
"q2": 4.44,
12-
"currentLimits1": [
13-
{
14-
"id": "limit set 1",
15-
"permanentLimit": 700.4,
16-
"temporaryLimits": [
17-
{
18-
"name": "IT5",
19-
"value": 250.0,
20-
"acceptableDuration": 300
21-
}
22-
],
23-
"applicability": null
24-
}
25-
],
26-
"currentLimits2": [
27-
{
28-
"id": "limit set 1",
29-
"permanentLimit": 800.8,
30-
"temporaryLimits": [
31-
{
32-
"name": "IT20",
33-
"value": 300.0,
34-
"acceptableDuration": 1200
35-
},
36-
{
37-
"name": "IT10",
38-
"value": 200.0,
39-
"acceptableDuration": 600
40-
}
41-
],
42-
"applicability": null
43-
}
44-
],
4512
"currentLimits": [
4613
{
4714
"id": "limit set 1",
@@ -100,63 +67,6 @@
10067
"voltageLevelId2": "VLHV2",
10168
"terminal1Connected": true,
10269
"terminal2Connected": true,
103-
"currentLimits1": [
104-
{
105-
"id": "group2",
106-
"permanentLimit": 250.0,
107-
"temporaryLimits": [
108-
{
109-
"name": "temporary1",
110-
"value": 90.0,
111-
"acceptableDuration": 200
112-
}
113-
],
114-
"applicability": null
115-
},
116-
{
117-
"id": "group1",
118-
"permanentLimit": 220.0,
119-
"temporaryLimits": [
120-
{
121-
"name": "temporary2",
122-
"value": 70.0,
123-
"acceptableDuration": 150
124-
},
125-
{
126-
"name": "temporary1",
127-
"value": 50.0,
128-
"acceptableDuration": 100
129-
}
130-
],
131-
"applicability": null
132-
}
133-
],
134-
"currentLimits2": [
135-
{
136-
"id": "group4",
137-
"permanentLimit": 320.0,
138-
"temporaryLimits": [
139-
{
140-
"name": "temporary1",
141-
"value": 130.0,
142-
"acceptableDuration": 200
143-
}
144-
],
145-
"applicability": null
146-
},
147-
{
148-
"id": "group3",
149-
"permanentLimit": 300.0,
150-
"temporaryLimits": [
151-
{
152-
"name": "temporary1",
153-
"value": 110.0,
154-
"acceptableDuration": 150
155-
}
156-
],
157-
"applicability": null
158-
}
159-
],
16070
"currentLimits": [
16171
{
16272
"id": "group2",

0 commit comments

Comments
 (0)