@Test public void testHvdcFailure() { thrown.expect(UnsupportedOperationException.class); thrown.expectMessage("Reduction of HVDC lines is not supported"); Network network = HvdcTestNetwork.createLcc(); NetworkReducer reducer = NetworkReducer.builder() .withNetworkPredicate(IdentifierNetworkPredicate.of("VL1")) .withReductionOptions(new ReductionOptions()) .build(); reducer.reduce(network); }
@Override protected void reduce(Substation substation) { substation.remove(); observers.forEach(o -> o.substationRemoved(substation)); }
DefaultNetworkReducer extends AbstractNetworkReducer { @Override protected void reduce(Substation substation) { substation.remove(); observers.forEach(o -> o.substationRemoved(substation)); } }
DefaultNetworkReducer extends AbstractNetworkReducer { @Override protected void reduce(Substation substation) { substation.remove(); observers.forEach(o -> o.substationRemoved(substation)); } DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, NetworkReducerObserver... observers);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, List<NetworkReducerObserver> observers); }
DefaultNetworkReducer extends AbstractNetworkReducer { @Override protected void reduce(Substation substation) { substation.remove(); observers.forEach(o -> o.substationRemoved(substation)); } DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, NetworkReducerObserver... observers);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, List<NetworkReducerObserver> observers);  }
DefaultNetworkReducer extends AbstractNetworkReducer { @Override protected void reduce(Substation substation) { substation.remove(); observers.forEach(o -> o.substationRemoved(substation)); } DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, NetworkReducerObserver... observers);  DefaultNetworkReducer(NetworkPredicate predicate, ReductionOptions options, List<NetworkReducerObserver> observers);   }