public abstract class AbstractNetworkReducer extends Object implements NetworkReducer
Constructor and Description |
---|
AbstractNetworkReducer(NetworkPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
protected NetworkPredicate |
getPredicate() |
protected abstract void |
reduce(HvdcLine hvdcLine) |
protected abstract void |
reduce(Line line) |
void |
reduce(Network network) |
protected abstract void |
reduce(Substation substation) |
protected abstract void |
reduce(ThreeWindingsTransformer transformer) |
protected abstract void |
reduce(TwoWindingsTransformer transformer) |
protected abstract void |
reduce(VoltageLevel voltageLevel) |
protected boolean |
test(HvdcLine hvdcLine)
Return true if the given
HvdcLine should be kept in the network, false otherwise |
protected boolean |
test(Line line)
Return true if the given
Line should be kept in the network, false otherwise |
protected boolean |
test(Substation substation) |
protected boolean |
test(ThreeWindingsTransformer transformer)
Return true if the given
ThreeWindingsTransformer should be kept in the network, false otherwise |
protected boolean |
test(TwoWindingsTransformer transformer)
Return true if the given
TwoWindingsTransformer should be kept in the network, false otherwise |
protected boolean |
test(VoltageLevel voltageLevel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder
public AbstractNetworkReducer(NetworkPredicate predicate)
public final void reduce(Network network)
reduce
in interface NetworkReducer
protected final NetworkPredicate getPredicate()
protected abstract void reduce(Substation substation)
protected abstract void reduce(VoltageLevel voltageLevel)
protected abstract void reduce(Line line)
protected abstract void reduce(TwoWindingsTransformer transformer)
protected abstract void reduce(ThreeWindingsTransformer transformer)
protected abstract void reduce(HvdcLine hvdcLine)
protected boolean test(Substation substation)
protected boolean test(VoltageLevel voltageLevel)
protected boolean test(Line line)
Line
should be kept in the network, false otherwiseprotected boolean test(TwoWindingsTransformer transformer)
TwoWindingsTransformer
should be kept in the network, false otherwiseprotected boolean test(ThreeWindingsTransformer transformer)
ThreeWindingsTransformer
should be kept in the network, false otherwiseCopyright © 2020. All rights reserved.