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

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

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

Branch.getCurrentLimits2介绍

暂无

代码示例

代码示例来源: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());
}

相关文章