Package com.powsybl.iidm.reducer
Class DefaultNetworkPredicate
- java.lang.Object
-
- com.powsybl.iidm.reducer.DefaultNetworkPredicate
-
- All Implemented Interfaces:
NetworkPredicate
public class DefaultNetworkPredicate extends Object implements NetworkPredicate
A default implementation ofNetworkPredicate
that keeps everything.- Author:
- Mathieu Bague
-
-
Constructor Summary
Constructors Constructor Description DefaultNetworkPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(Substation substation)
Return true if the givenSubstation
should be kept in the network, false otherwiseboolean
test(VoltageLevel voltageLevel)
Return true if the givenVoltageLevel
should be kept in the network, false otherwise
-
-
-
Method Detail
-
test
public boolean test(Substation substation)
Description copied from interface:NetworkPredicate
Return true if the givenSubstation
should be kept in the network, false otherwise- Specified by:
test
in interfaceNetworkPredicate
-
test
public boolean test(VoltageLevel voltageLevel)
Description copied from interface:NetworkPredicate
Return true if the givenVoltageLevel
should be kept in the network, false otherwise- Specified by:
test
in interfaceNetworkPredicate
-
-