Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static LineMapInfos toMapInfos(Identifiable<?> identifiable, Double dcPo
Terminal terminal1 = line.getTerminal1();
Terminal terminal2 = line.getTerminal2();

LineMapInfos.LineMapInfosBuilder<?, ?> builder = LineMapInfos.builder()
return LineMapInfos.builder()
.id(line.getId())
.name(line.getOptionalName().orElse(null))
.terminal1Connected(terminal1.isConnected())
Expand All @@ -127,10 +127,10 @@ private static LineMapInfos toMapInfos(Identifiable<?> identifiable, Double dcPo
.p1(nullIfNan(terminal1.getP()))
.p2(nullIfNan(terminal2.getP()))
.i1(nullIfNan(computeIntensity(terminal1, dcPowerFactor)))
.i2(nullIfNan(computeIntensity(terminal2, dcPowerFactor)));
builder.operatingStatus(ExtensionUtils.toOperatingStatus(line));

return builder.build();
.i2(nullIfNan(computeIntensity(terminal2, dcPowerFactor)))
// TODO - lock and strip are hidden on map temporarly
//.operatingStatus(ExtensionUtils.toOperatingStatus(line))
.build();
}

private static LineTabInfos toTabInfos(Identifiable<?> identifiable, Double dcPowerFactor, boolean loadOperationalLimitGroups) {
Expand Down
3 changes: 1 addition & 2 deletions src/test/resources/lines-map-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"terminal1Connected": true,
"terminal2Connected": true,
"p1": 200.0,
"p2": 100.0,
"operatingStatus": "PLANNED_OUTAGE"
"p2": 100.0
},
{
"id": "LINE4",
Expand Down
3 changes: 1 addition & 2 deletions src/test/resources/partial-lines-map-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"terminal1Connected": true,
"terminal2Connected": true,
"p1": 200.0,
"p2": 100.0,
"operatingStatus": "PLANNED_OUTAGE"
"p2": 100.0
},
{
"id": "NHV1_NHV2_2",
Expand Down