Interface Constraint

    • Method Detail

      • cost

        double cost​(Link link,
                    ResourceContext context)
        Evaluates the specified link and provides the cost for its traversal.
        Parameters:
        link - link to be evaluated
        context - resource context for validating availability of resources
        Returns:
        cost of link traversal
      • validate

        boolean validate​(Path path,
                         ResourceContext context)
        Validates that the specified path satisfies the constraint.
        Parameters:
        path - path to be validated
        context - resource context for validating availability of resources
        Returns:
        cost of link traversal