Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: vmouradian <[email protected]>
  • Loading branch information
vmouradian committed Jan 6, 2025
1 parent 0463613 commit 2ed030b
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@
import com.powsybl.contingency.Contingency;
import com.powsybl.loadflow.LoadFlowParameters;

import java.util.Objects;
import java.util.Optional;

/**
* @author Valentin Mouradian {@literal <valentin.mouradian at artelys.com>}
*/
public class ContingencyLoadFlowParameters extends AbstractExtension<Contingency> {

private Boolean distributedSlack = null;
private Boolean distributedSlack;

private Boolean areaInterchangeControl = null;
private Boolean areaInterchangeControl;

private LoadFlowParameters.BalanceType balanceType = null;

public ContingencyLoadFlowParameters() {
}
private LoadFlowParameters.BalanceType balanceType;

@Override
public String getName() {
Expand All @@ -44,18 +42,18 @@ public Optional<LoadFlowParameters.BalanceType> getBalanceType() {
return Optional.ofNullable(balanceType);
}

public ContingencyLoadFlowParameters setDistributedSlack(Boolean distributedSlack) {
public ContingencyLoadFlowParameters setDistributedSlack(boolean distributedSlack) {
this.distributedSlack = distributedSlack;
return this;
}

public ContingencyLoadFlowParameters setAreaInterchangeControl(Boolean areaInterchangeControl) {
public ContingencyLoadFlowParameters setAreaInterchangeControl(boolean areaInterchangeControl) {
this.areaInterchangeControl = areaInterchangeControl;
return this;
}

public ContingencyLoadFlowParameters setBalanceType(LoadFlowParameters.BalanceType balanceType) {
this.balanceType = balanceType;
this.balanceType = Objects.requireNonNull(balanceType);
return this;
}
}

0 comments on commit 2ed030b

Please sign in to comment.