com.powsybl.iidm.network.Network.getBranches()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中com.powsybl.iidm.network.Network.getBranches()方法的一些代码示例,展示了Network.getBranches()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getBranches()方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getBranches

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;

相关文章