Class PathViabilityConstraint

  • All Implemented Interfaces:
    Constraint
    Direct Known Subclasses:
    WaypointConstraint

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