本文整理了Java中com.powsybl.iidm.network.Branch.getCurrentLimits1()
方法的一些代码示例,展示了Branch.getCurrentLimits1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Branch.getCurrentLimits1()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Branch
类名称:Branch
方法名:getCurrentLimits1
暂无
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private void writeBranchCurrentLimits(TableFormatter formatter) throws IOException {
for (Branch branch : network.getBranches()) {
String branchId = branch.getId();
if (branch.getCurrentLimits1() != null) {
writeTemporaryCurrentLimits(branch.getCurrentLimits1(), formatter, branchId, true, "_1_");
}
if (branch.getCurrentLimits2() != null) {
writeTemporaryCurrentLimits(branch.getCurrentLimits2(), formatter, branchId, false, "_2_");
}
}
}
代码示例来源:origin: itesla/ipst
public static LinkedHashMap<String, Double> getBranchesData(Network network) {
LinkedHashMap<String, Double> branchesData = new LinkedHashMap<>();
network.getBranchStream().forEach(branch -> {
addBranchSideData(branchesData, branch.getId(), branch.getTerminal1(), branch.getCurrentLimits1() == null ? Double.NaN : branch.getCurrentLimits1().getPermanentLimit());
addBranchSideData(branchesData, branch.getId(), branch.getTerminal2(), branch.getCurrentLimits2() == null ? Double.NaN : branch.getCurrentLimits2().getPermanentLimit());
});
return branchesData;
}
代码示例来源:origin: itesla/ipst
private static void dumpLimits(EurostagDictionary dictionary, BufferedWriter writer, Branch branch) throws IOException {
dumpLimits(dictionary, writer, branch.getId(),
branch.getCurrentLimits1(),
branch.getCurrentLimits2(),
branch.getTerminal1().getVoltageLevel().getNominalV(),
branch.getTerminal2().getVoltageLevel().getNominalV());
}
内容来源于网络,如有侵权,请联系作者删除!