com.powsybl.python.security.BranchResultContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pypowsybl Show documentation
Show all versions of pypowsybl Show documentation
A C interface to powsybl, for pypowsybl implementation
The newest version!
/**
* Copyright (c) 2021, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
*/
package com.powsybl.python.security;
import com.powsybl.security.results.BranchResult;
/**
* @author Etienne Lesot {@literal }
*/
public class BranchResultContext extends BranchResult {
private final String contingencyId;
private final String operatorStrategyId;
public BranchResultContext(BranchResult branchResult, String contingency, String operatorStrategy) {
super(branchResult.getBranchId(), branchResult.getP1(), branchResult.getQ1(), branchResult.getI1(),
branchResult.getP2(), branchResult.getQ2(), branchResult.getI2(), branchResult.getFlowTransfer());
this.contingencyId = contingency;
this.operatorStrategyId = operatorStrategy;
}
public String getContingencyId() {
return contingencyId;
}
public String getOperatorStrategyId() {
return operatorStrategyId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy