Interface ArcInspector


  • public interface ArcInspector
    This class can be used to indicate to an algorithm which arcs can be used and the costs of the usable arcs..
    • Method Detail

      • isAllowed

        boolean isAllowed​(Arc arc)
        Check if the given arc can be used (is allowed).
        Parameters:
        arc - Arc to check.
        Returns:
        true if the given arc is allowed.
      • getCost

        double getCost​(Arc arc)
        Find the cost of the given arc.
        Parameters:
        arc - Arc for which the cost should be returned.
        Returns:
        Cost of the arc.