本文整理了Java中com.powsybl.iidm.network.Terminal.getNodeBreakerView()
方法的一些代码示例,展示了Terminal.getNodeBreakerView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Terminal.getNodeBreakerView()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Terminal
类名称:Terminal
方法名:getNodeBreakerView
[英]Get a view to access to node/breaker topology informations at the terminal.
[中]查看终端的节点/断路器拓扑信息。
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
private static void writeNode(Integer index, Terminal t, NetworkXmlWriterContext context) throws XMLStreamException {
context.getWriter().writeAttribute(NODE + indexToString(index),
Integer.toString(t.getNodeBreakerView().getNode()));
}
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected void writeRootElementAttributes(BusbarSection bs, VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException {
XmlUtil.writeInt("node", bs.getTerminal().getNodeBreakerView().getNode(), context.getWriter());
XmlUtil.writeDouble("v", bs.getV(), context.getWriter());
XmlUtil.writeDouble("angle", bs.getAngle(), context.getWriter());
}
代码示例来源:origin: itesla/ipst
twta.setConnectableBus1(hvGen.getTerminal().getBusBreakerView().getConnectableBus().getId());
} else {
twta.setNode1(hvGen.getTerminal().getNodeBreakerView().getNode());
代码示例来源:origin: com.powsybl/powsybl-iidm-util
/**
* Creates a standard connection point from a bus bar section,
* with a disconnector and a breaker.
*
* @param bb Bus bar section to connect to
* @return Node index of the connection point
*/
public static int newStandardConnection(BusbarSection bb) {
Objects.requireNonNull(bb, "Busbar section is null.");
int n = bb.getTerminal().getNodeBreakerView().getNode();
VoltageLevel.NodeBreakerView topo = bb.getTerminal().getVoltageLevel().getNodeBreakerView();
int oldCount = topo.getNodeCount();
topo.setNodeCount(oldCount + 2);
topo.newDisconnector()
.setId(String.format("disconnector %s-%d", bb.getId(), oldCount))
.setNode1(n)
.setNode2(oldCount)
.add();
topo.newBreaker()
.setId(String.format("breaker %s-%d", bb.getId(), oldCount + 1))
.setNode1(oldCount)
.setNode2(oldCount + 1)
.add();
return oldCount + 1;
}
}
代码示例来源:origin: com.powsybl/powsybl-iidm-reducer
private static void fillNodeOrBus(InjectionAdder adder, Terminal terminal) {
if (terminal.getVoltageLevel().getTopologyKind() == TopologyKind.NODE_BREAKER) {
adder.setNode(terminal.getNodeBreakerView().getNode());
} else {
if (terminal.isConnected()) {
adder.setBus(terminal.getBusBreakerView().getBus().getId());
}
adder.setConnectableBus(terminal.getBusBreakerView().getConnectableBus().getId());
}
}
代码示例来源:origin: com.powsybl/powsybl-iidm-test
.setRetained(true)
.setOpen(false)
.setNode1(voltageLevel1BusbarSection1.getTerminal().getNodeBreakerView().getNode())
.setNode2(voltageLevel1BusbarSection2.getTerminal().getNodeBreakerView().getNode())
.add();
Load load1 = voltageLevel1.newLoad()
.setId("load1Disconnector1")
.setOpen(false)
.setNode1(load1.getTerminal().getNodeBreakerView().getNode())
.setNode2(3)
.add();
.setOpen(false)
.setNode1(3)
.setNode2(voltageLevel1BusbarSection1.getTerminal().getNodeBreakerView().getNode())
.add();
Generator generator1 = voltageLevel1.newGenerator()
.setId("generator1Disconnector1")
.setOpen(false)
.setNode1(generator1.getTerminal().getNodeBreakerView().getNode())
.setNode2(6)
.add();
.setOpen(false)
.setNode1(6)
.setNode2(voltageLevel1BusbarSection2.getTerminal().getNodeBreakerView().getNode())
.add();
代码示例来源:origin: com.powsybl/powsybl-iidm-impl
l.node1 = t1.getNodeBreakerView().getNode();
l.node2 = t2.getNodeBreakerView().getNode();
内容来源于网络,如有侵权,请联系作者删除!