Skip to content

Commit

Permalink
Refactor AbstractHvdcBuilder constructor
Browse files Browse the repository at this point in the history
Signed-off-by: lisrte <[email protected]>
  • Loading branch information
Lisrte committed Jan 22, 2024
1 parent 917fb54 commit 0ff41af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ public abstract class AbstractHvdcBuilder<R extends AbstractEquipmentModelBuilde

protected TwoSides danglingSide;

protected AbstractHvdcBuilder(Network network, ModelConfig modelConfig, String identifiableType, Reporter reporter) {
protected AbstractHvdcBuilder(Network network, ModelConfig modelConfig, IdentifiableType identifiableType, Reporter reporter) {
super(network, modelConfig, identifiableType, reporter);
}

protected AbstractHvdcBuilder(Network network, ModelConfig modelConfig, String equipmentType, Reporter reporter) {
super(network, modelConfig, equipmentType, reporter);
}

public R dangling(TwoSides danglingSide) {
this.danglingSide = danglingSide;
return self();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static Set<String> getSupportedLibs() {
}

protected HvdcPBuilder(Network network, ModelConfig modelConfig, Reporter reporter) {
super(network, modelConfig, IdentifiableType.HVDC_LINE.toString(), reporter);
super(network, modelConfig, IdentifiableType.HVDC_LINE, reporter);
}

@Override
Expand Down

0 comments on commit 0ff41af

Please sign in to comment.