Skip to content
Open
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 @@ -19,6 +19,8 @@
import org.gridsuite.modification.modifications.AbstractModification;
import org.gridsuite.modification.modifications.LineCreation;

import java.util.List;

/**
* @author Sylvain Bouzols <sylvain.bouzols at rte-france.com>
*/
Expand All @@ -45,6 +47,9 @@ public class LineCreationInfos extends BranchCreationInfos {
@Schema(description = "Shunt susceptance Side 2")
private Double b2;

@Schema(description = "Segments used from catalog")
private List<LineSegmentInfos> lineSegments;

@Override
public AbstractModification toModification() {
return new LineCreation(this);
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/org/gridsuite/modification/dto/LineSegmentInfos.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.gridsuite.modification.dto;

/**
* @author El Cheikh Bassel <bassel.el-cheikh_externe at rte-france.com>
*/

public record LineSegmentInfos(String segmentTypeId,
Integer segmentDistanceValue,
String area,
String temperature,
Double shapeFactor) {
}
Loading