public class IdentifierNetworkPredicate extends java.lang.Object implements NetworkPredicate
Constructor and Description |
---|
IdentifierNetworkPredicate(java.util.Collection<java.lang.String> ids) |
Modifier and Type | Method and Description |
---|---|
static IdentifierNetworkPredicate |
of(java.lang.String... ids) |
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.
|
public IdentifierNetworkPredicate(java.util.Collection<java.lang.String> ids)
public static IdentifierNetworkPredicate of(java.lang.String... ids)
public boolean test(Substation substation)
test
in interface NetworkPredicate
substation
- The substation to testpublic boolean test(VoltageLevel voltageLevel)
test
in interface NetworkPredicate
voltageLevel
- The voltage level to test