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

x33g5p2x  于2022-01-17 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(108)

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

Branch.getName介绍

暂无

代码示例

代码示例来源:origin: com.powsybl/powsybl-security-analysis-api

private void checkPermanentLimit(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer) {
  if (LimitViolationUtils.checkPermanentLimit(branch, side, limitReduction, value)) {
    consumer.accept(new LimitViolation(branch.getId(),
        branch.getName(),
        LimitViolationType.CURRENT,
        null,
        Integer.MAX_VALUE,
        branch.getCurrentLimits(side).getPermanentLimit(),
        limitReduction,
        value,
        side));
  }
}

代码示例来源:origin: com.powsybl/powsybl-security-analysis-api

@Override
public void checkCurrent(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer) {
  Branch.Overload overload = LimitViolationUtils.checkTemporaryLimits(branch, side, limitReduction, value);
  if (currentLimitTypes.contains(Security.CurrentLimitType.TATL) && (overload != null)) {
    consumer.accept(new LimitViolation(branch.getId(),
        branch.getName(),
        LimitViolationType.CURRENT,
        overload.getPreviousLimitName(),
        overload.getTemporaryLimit().getAcceptableDuration(),
        overload.getPreviousLimit(),
        limitReduction,
        branch.getTerminal(side).getI(),
        side));
  } else if (currentLimitTypes.contains(Security.CurrentLimitType.PATL)) {
    checkPermanentLimit(branch, side, value, consumer);
  }
}

代码示例来源:origin: com.powsybl/powsybl-iidm-api

Node n1 = nodes.get(getBusId(b1));
Node n2 = nodes.get(getBusId(b2));
graph.edge(new Edge(n1, n2).attr("tooltip", branch.getName()));

代码示例来源:origin: com.powsybl/powsybl-iidm-reducer

private Load replaceBranchByLoad(Branch<?> branch, VoltageLevel vl, Terminal terminal) {
  LoadAdder loadAdder = vl.newLoad()
      .setId(branch.getId())
      .setName(branch.getName())
      .setLoadType(LoadType.FICTITIOUS)
      .setP0(checkP(terminal))
      .setQ0(checkQ(terminal));
  fillNodeOrBus(loadAdder, terminal);
  branch.remove();
  Load load = loadAdder.add();
  load.getTerminal()
      .setP(terminal.getP())
      .setQ(terminal.getQ());
  return load;
}

相关文章