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

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

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

Network.getShuntCompensatorStream介绍

[英]Get all compensator shunts.
[中]把所有的补偿器都调过来。

代码示例

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

/**
 * @deprecated Use {@link #getShuntCompensatorStream()} instead.
 */
@Deprecated
default Stream<ShuntCompensator> getShuntStream() {
  return getShuntCompensatorStream();
}

代码示例来源:origin: com.powsybl/powsybl-ampl-converter

public static void fillMapper(StringToIntMapper<AmplSubset> mapper, Network network) {
  // Voltage levels
  network.getVoltageLevelStream().forEach(vl -> mapper.newInt(AmplSubset.VOLTAGE_LEVEL, vl.getId()));
  // Buses
  getBuses(network).forEach(b -> mapper.newInt(AmplSubset.BUS, b.getId()));
  // Lines
  fillLines(mapper, network);
  // Two windings transformers
  fillTwoWindingsTransformers(mapper, network);
  // Three windings transformers
  fillThreeWindingsTransformers(mapper, network);
  // Dangling lines
  fillDanglingLines(mapper, network);
  // loads
  network.getLoadStream().forEach(l -> mapper.newInt(AmplSubset.LOAD, l.getId()));
  // shunts
  network.getShuntCompensatorStream().forEach(sc -> mapper.newInt(AmplSubset.SHUNT, sc.getId()));
  // generators
  network.getGeneratorStream().forEach(g -> mapper.newInt(AmplSubset.GENERATOR, g.getId()));
  // static var compensators
  network.getStaticVarCompensatorStream().forEach(svc -> mapper.newInt(AmplSubset.STATIC_VAR_COMPENSATOR, svc.getId()));
  // HVDC lines
  network.getHvdcLineStream().forEach(hvdc -> mapper.newInt(AmplSubset.HVDC_LINE, hvdc.getId()));
  // HvdcConverterStations
  network.getHvdcConverterStations().forEach(conv ->
      mapper.newInt(conv.getHvdcType().equals(HvdcType.VSC) ? AmplSubset.VSC_CONVERTER_STATION : AmplSubset.LCC_CONVERTER_STATION,  conv.getId()));
}

代码示例来源:origin: com.powsybl/powsybl-loadflow-results-completion

});
network.getShuntCompensatorStream().forEach(sh -> {
  Terminal terminal = sh.getTerminal();
  if (terminal.isConnected()

相关文章