Class AStarRetrievalSolution
- java.lang.Object
-
- de.uni_trier.wi2.procake.retrieval.impl.AStarRetrievalSolution
-
- All Implemented Interfaces:
Comparable<AStarRetrievalSolution>
public class AStarRetrievalSolution extends Object implements Comparable<AStarRetrievalSolution>
Contains a possible solution for a retrieval situation.- Author:
- Alexander Stromer
-
-
Field Summary
Fields Modifier and Type Field Description NESTWorkflowObjectcaseGraphReference to the original graphTreeSet<AStarCaseSolution>caseSolutionsAll possible solutions for the current case.intsolutionIDThe unique ID of the RetrievalSolution.
-
Constructor Summary
Constructors Constructor Description AStarRetrievalSolution(NESTWorkflowObject originalCaseGraph)Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AStarRetrievalSolution o)doublegetSim()The maximum similarity of all cases in caseSolutions.StringtoString()
-
-
-
Field Detail
-
caseGraph
public NESTWorkflowObject caseGraph
Reference to the original graph
-
caseSolutions
public TreeSet<AStarCaseSolution> caseSolutions
All possible solutions for the current case.
-
solutionID
public int solutionID
The unique ID of the RetrievalSolution.
-
-
Constructor Detail
-
AStarRetrievalSolution
public AStarRetrievalSolution(NESTWorkflowObject originalCaseGraph)
Standard constructor.
-
-
Method Detail
-
getSim
public double getSim()
The maximum similarity of all cases in caseSolutions.- Returns:
- Maximum similarity.
-
compareTo
public int compareTo(AStarRetrievalSolution o)
- Specified by:
compareToin interfaceComparable<AStarRetrievalSolution>
-
-