Class MarkerConstraint

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double cost​(Link link, ResourceContext context)
      Evaluates the specified link and provides the cost for its traversal.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      boolean validate​(Path path, ResourceContext context)
      Validates that the specified path satisfies the constraint.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MarkerConstraint

        public MarkerConstraint()
    • Method Detail

      • cost

        public final double cost​(Link link,
                                 ResourceContext context)
        Description copied from interface: Constraint
        Evaluates the specified link and provides the cost for its traversal.
        Specified by:
        cost in interface Constraint
        Parameters:
        link - link to be evaluated
        context - resource context for validating availability of resources
        Returns:
        cost of link traversal
      • validate

        public final boolean validate​(Path path,
                                      ResourceContext context)
        Description copied from interface: Constraint
        Validates that the specified path satisfies the constraint.
        Specified by:
        validate in interface Constraint
        Parameters:
        path - path to be validated
        context - resource context for validating availability of resources
        Returns:
        cost of link traversal
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object