本文整理了Java中com.powsybl.iidm.network.Network.getBranches()
方法的一些代码示例,展示了Network.getBranches()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getBranches()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getBranches
[英]Get all branches
[中]得到所有的分支
代码示例来源: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: com.powsybl/powsybl-iidm-api
graph.node(n);
for (Branch branch : network.getBranches()) {
Bus b1 = branch.getTerminal1().getBusView().getBus();
Bus b2 = branch.getTerminal2().getBusView().getBus();
代码示例来源:origin: itesla/ipst
for (Branch l : latestNetwork.getBranches()) {
if (equipIds != null && !equipIds.contains(l.getId())) {
continue;
内容来源于网络,如有侵权,请联系作者删除!