Class ShortestPathSolution

    • Constructor Detail

      • ShortestPathSolution

        public ShortestPathSolution​(ShortestPathData data,
                                    AbstractSolution.Status status)
        Create a new infeasible shortest-path solution for the given input and status.
        Parameters:
        data - Original input data for this solution.
        status - Status of the solution (UNKNOWN / INFEASIBLE).
      • ShortestPathSolution

        public ShortestPathSolution​(ShortestPathData data,
                                    AbstractSolution.Status status,
                                    Path path)
        Create a new shortest-path solution.
        Parameters:
        data - Original input data for this solution.
        status - Status of the solution (FEASIBLE / OPTIMAL).
        path - Path corresponding to the solution.
    • Method Detail

      • getPath

        public Path getPath()
        Returns:
        The path of this solution, if any.
      • toString

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