/** * 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; } }
.setRetained(false) .add(); vl2.getNodeBreakerView().newBreaker() .setId("BK1") .setName(BREAKER_NAME)
.setRetained(false) .add(); vl2.getNodeBreakerView().newBreaker() .setId("BK2") .setName(BREAKER_NAME) .setRetained(false) .add(); vl2.getNodeBreakerView().newBreaker() .setId("BK3") .setName(BREAKER_NAME)
.setNode(1) .add(); topology1.newBreaker() .setId("voltageLevel1Breaker1") .setRetained(true)