Package com.powsybl.iidm.reducer
Class IdentifierNetworkPredicate
java.lang.Object
com.powsybl.iidm.reducer.IdentifierNetworkPredicate
- All Implemented Interfaces:
NetworkPredicate
- Author:
- Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifierNetworkPredicate
boolean
test
(Substation substation) Keep this substation if the IDs list contains the ID of this substation or one of its voltage levels.boolean
test
(VoltageLevel voltageLevel) Keep this voltage level if the IDs list contains the ID of this voltage level.
-
Constructor Details
-
IdentifierNetworkPredicate
-
-
Method Details
-
of
-
test
Keep this substation if the IDs list contains the ID of this substation or one of its voltage levels.- Specified by:
test
in interfaceNetworkPredicate
- Parameters:
substation
- The substation to test- Returns:
- true if the IDs list contains the ID of this substation or one of its voltage levels, false otherwise
-
test
Keep this voltage level if the IDs list contains the ID of this voltage level.- Specified by:
test
in interfaceNetworkPredicate
- Parameters:
voltageLevel
- The voltage level to test- Returns:
- true if the IDs list contains the ID of this voltage level, false otherwise
-