@Override public BusBreakerView.SwitchAdder newSwitch() { return new SwitchAdderImpl(); }
@Override public Switch add() { String id = checkAndGetUniqueId(); if (busId1 == null) { throw new ValidationException(this, "first connection bus is not set"); } if (busId2 == null) { throw new ValidationException(this, "second connection bus is not set"); } SwitchImpl aSwitch = new SwitchImpl(BusBreakerVoltageLevel.this, id, getName(), SwitchKind.BREAKER, open, true, fictitious); addSwitch(aSwitch, busId1, busId2); getNetwork().getListeners().notifyCreation(aSwitch); return aSwitch; }