Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <[email protected]>
  • Loading branch information
flo-dup committed Dec 13, 2023
1 parent 6d9975b commit b33df9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void createMacroConnections(MacroConnectionsAdder adder) {
adder.createMacroConnections(this, controlledQuadripole, QuadripoleModel.class, this::getVarConnectionsWithControlledQuadripole, CONTROL_SUFFIX);
}

protected List<VarConnection> getVarConnectionsWithMeasuredQuadripole(QuadripoleModel connected) {
private List<VarConnection> getVarConnectionsWithMeasuredQuadripole(QuadripoleModel connected) {
return Arrays.asList(
new VarConnection("currentLimitAutomaton_IMonitored", connected.getIVarName(measuredSide)),
new VarConnection("currentLimitAutomaton_AutomatonExists", connected.getDeactivateCurrentLimitsVarName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public CurrentLimitTwoLevelsAutomaton(String dynamicModelId, String parameterSet

@Override
public void createMacroConnections(MacroConnectionsAdder adder) {
adder.createMacroConnections(this, measuredQuadripole, QuadripoleModel.class, this::getVarConnectionsWithMeasuredQuadripole, FIRST_MEASURE_SUFFIX + SideUtils.getSideSuffix(measuredSide));
adder.createMacroConnections(this, measuredQuadripole, QuadripoleModel.class, this::getVarConnectionsWithFirstMeasuredQuadripole, FIRST_MEASURE_SUFFIX + SideUtils.getSideSuffix(measuredSide));
adder.createMacroConnections(this, secondMeasuredQuadripole, QuadripoleModel.class, this::getVarConnectionsWithSecondMeasuredQuadripole, SECOND_MEASURE_SUFFIX + SideUtils.getSideSuffix(secondMeasuredSide));
adder.createMacroConnections(this, controlledQuadripole, QuadripoleModel.class, this::getVarConnectionsWithControlledQuadripole, CONTROL_SUFFIX);
}

protected List<VarConnection> getVarConnectionsWithMeasuredQuadripole(QuadripoleModel connected) {
private List<VarConnection> getVarConnectionsWithFirstMeasuredQuadripole(QuadripoleModel connected) {
return Arrays.asList(
new VarConnection("currentLimitAutomaton_IMonitored1", connected.getIVarName(measuredSide)),
new VarConnection("currentLimitAutomaton_AutomatonExists", connected.getDeactivateCurrentLimitsVarName())
Expand Down

0 comments on commit b33df9f

Please sign in to comment.