Package com.powsybl.iidm.reducer
Class AbstractNetworkReducer
- java.lang.Object
-
- com.powsybl.iidm.reducer.AbstractNetworkReducer
-
- All Implemented Interfaces:
NetworkReducer
- Direct Known Subclasses:
DefaultNetworkReducer
public abstract class AbstractNetworkReducer extends Object implements NetworkReducer
- Author:
- Mathieu Bague
-
-
Constructor Summary
Constructors Constructor Description AbstractNetworkReducer(NetworkPredicate predicate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 givenHvdcLine
should be kept in the network, false otherwiseprotected boolean
test(Line line)
Return true if the givenLine
should be kept in the network, false otherwiseprotected boolean
test(Substation substation)
protected boolean
test(ThreeWindingsTransformer transformer)
Return true if the givenThreeWindingsTransformer
should be kept in the network, false otherwiseprotected boolean
test(TwoWindingsTransformer transformer)
Return true if the givenTwoWindingsTransformer
should be kept in the network, false otherwiseprotected boolean
test(VoltageLevel voltageLevel)
-
-
-
Constructor Detail
-
AbstractNetworkReducer
public AbstractNetworkReducer(NetworkPredicate predicate)
-
-
Method Detail
-
reduce
public final void reduce(Network network)
- Specified by:
reduce
in interfaceNetworkReducer
-
getPredicate
protected final NetworkPredicate getPredicate()
-
reduce
protected abstract void reduce(Substation substation)
-
reduce
protected abstract void reduce(VoltageLevel voltageLevel)
-
reduce
protected abstract void reduce(Line line)
-
reduce
protected abstract void reduce(TwoWindingsTransformer transformer)
-
reduce
protected abstract void reduce(ThreeWindingsTransformer transformer)
-
reduce
protected abstract void reduce(HvdcLine hvdcLine)
-
test
protected boolean test(Substation substation)
-
test
protected boolean test(VoltageLevel voltageLevel)
-
test
protected boolean test(Line line)
Return true if the givenLine
should be kept in the network, false otherwise
-
test
protected boolean test(TwoWindingsTransformer transformer)
Return true if the givenTwoWindingsTransformer
should be kept in the network, false otherwise
-
test
protected boolean test(ThreeWindingsTransformer transformer)
Return true if the givenThreeWindingsTransformer
should be kept in the network, false otherwise
-
-