Class ShortestPathSolution
- java.lang.Object
-
- org.insa.graphs.algorithm.AbstractSolution
-
- org.insa.graphs.algorithm.shortestpath.ShortestPathSolution
-
public class ShortestPathSolution extends AbstractSolution
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.insa.graphs.algorithm.AbstractSolution
AbstractSolution.Status
-
-
Constructor Summary
Constructors Constructor Description ShortestPathSolution(ShortestPathData data, AbstractSolution.Status status)
Create a new infeasible shortest-path solution for the given input and status.ShortestPathSolution(ShortestPathData data, AbstractSolution.Status status, Path path)
Create a new shortest-path solution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortestPathData
getInputData()
Path
getPath()
java.lang.String
toString()
-
Methods inherited from class org.insa.graphs.algorithm.AbstractSolution
getSolvingTime, getStatus, isFeasible, setSolvingTime
-
-
-
-
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
-
getInputData
public ShortestPathData getInputData()
- Overrides:
getInputData
in classAbstractSolution
- Returns:
- Original input for this solution.
-
getPath
public Path getPath()
- Returns:
- The path of this solution, if any.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-