本文整理了Java中com.powsybl.iidm.network.Network.getShuntCompensatorStream()
方法的一些代码示例,展示了Network.getShuntCompensatorStream()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getShuntCompensatorStream()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称: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()
内容来源于网络,如有侵权,请联系作者删除!