Class PathViabilityConstraint

  • All Implemented Interfaces:
    Constraint
    Direct Known Subclasses:
    WaypointConstraint

    public abstract class PathViabilityConstraint
    extends java.lang.Object
    implements Constraint
    Abstract Constraint for constraints intended to influence only path viability and not influence individual link cost during path computation.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathViabilityConstraint

        public PathViabilityConstraint()
    • 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