Skip to content

Commit

Permalink
pull getName method up
Browse files Browse the repository at this point in the history
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
  • Loading branch information
vmouradian authored and vidaldid-rte committed Jan 29, 2025
1 parent 698de50 commit 310b99c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ public AcAreaInterchangeControlOuterLoop(ActivePowerDistribution activePowerDist
super(activePowerDistribution, new DistributedSlackOuterLoop(activePowerDistribution, slackBusPMaxMismatch), slackBusPMaxMismatch, areaInterchangePMaxMismatch, LOGGER);
}

@Override
public String getName() {
return NAME;
}

@Override
public double getSlackBusActivePowerMismatch(AcOuterLoopContext context) {
return context.getLastSolverResult().getSlackBusActivePowerMismatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ public AcIncrementalPhaseControlOuterLoop() {
super(LoggerFactory.getLogger(AcIncrementalPhaseControlOuterLoop.class));
}

@Override
public String getName() {
return NAME;
}

@Override
public void initialize(AcOuterLoopContext context) {
var contextData = new IncrementalContextData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public DcAreaInterchangeControlOuterLoop(ActivePowerDistribution activePowerDist
super(activePowerDistribution, new DcNoAreaOuterLoop(), slackBusPMaxMismatch, areaInterchangePMaxMismatch, LOGGER);
}

@Override
public String getName() {
return NAME;
}

@Override
public double getSlackBusActivePowerMismatch(DcOuterLoopContext context) {
List<LfBus> buses = context.getNetwork().getBuses();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public DcIncrementalPhaseControlOuterLoop() {
super(LoggerFactory.getLogger(DcIncrementalPhaseControlOuterLoop.class));
}

@Override
public String getName() {
return NAME;
}

public static class DcSensitivityContext extends AbstractSensitivityContext<DcVariableType, DcEquationType> {
public DcSensitivityContext(LfNetwork network, List<LfBranch> controllerBranches, EquationSystem<DcVariableType, DcEquationType> equationSystem, JacobianMatrix<DcVariableType, DcEquationType> jacobianMatrix) {
super(network, controllerBranches, equationSystem, jacobianMatrix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,9 @@ protected Map<String, Double> allocateSlackDistributionParticipationFactors(LfNe
}
return areaSlackDistributionParticipationFactor;
}

@Override
public String getName() {
return NAME;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public static double getHalfTargetDeadband(TransformerPhaseControl phaseControl)
return Math.max(phaseControl.getTargetDeadband(), MIN_TARGET_DEADBAND) / 2;
}

@Override
public String getName() {
return NAME;
}

public abstract static class AbstractSensitivityContext<V extends Enum<V> & Quantity, E extends Enum<E> & Quantity> {

private final List<LfBranch> controllerBranches;
Expand Down

0 comments on commit 310b99c

Please sign in to comment.