Class IdentifierNetworkPredicate

    • Constructor Detail

      • IdentifierNetworkPredicate

        public IdentifierNetworkPredicate​(Collection<String> ids)
    • Method Detail

      • test

        public boolean test​(Substation substation)
        Keep this substation if the IDs list contains the ID of this substation or one of its voltage levels.
        Specified by:
        test in interface NetworkPredicate
        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

        public boolean test​(VoltageLevel voltageLevel)
        Keep this voltage level if the IDs list contains the ID of this voltage level.
        Specified by:
        test in interface NetworkPredicate
        Parameters:
        voltageLevel - The voltage level to test
        Returns:
        true if the IDs list contains the ID of this voltage level, false otherwise