Class AStarCaseSolution
- java.lang.Object
-
- de.uni_trier.wi2.procake.similarity.nest.astar.utils.AStarCaseSolution
-
- All Implemented Interfaces:
Comparable<AStarCaseSolution>
public class AStarCaseSolution extends Object implements Comparable<AStarCaseSolution>
Represents a possible solution for a case, with a specific mapping.- Author:
- Alexander Stromer
-
-
Field Summary
Fields Modifier and Type Field Description NESTGraphItemObject[]caseEdgesContains all not yet mapped GraphEdges of the case.NESTGraphItemObject[]caseNodesContains all not yet mapped GraphNodes of the case.AStarHeuristicheuristicA* dependent heuristic for estimating similarities of all not yet mapped graph items of the query.Set<AStarGraphItemMapping>mappedItemsContains the mappings so far for the solution.NESTGraphItemObject[]queryEdgesContains all not yet investigated GraphEdges of the query.NESTGraphItemObject[]queryNodesContains all not yet investigated GraphNodes of the query.Map<String,Integer>requiredNullMappingsForNodeRequired for deciding whether to add null mappings for nodes.doublesimThe current total similarity for this solution.doublesimEstimateThe current sum of estimated similarities of all not yet mapped graph items.doublesimPartialThe sum of similarities of all already mapped graph items.longsolutionIDThe unique ID of the CaseSolution.booleanuseCaseOrientedMappingFlag whether to use case-oriented mapping.
-
Constructor Summary
Constructors Constructor Description AStarCaseSolution(long solutionID)Standard constructorAStarCaseSolution(long solutionID, AStarCaseSolution onBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AStarCaseSolution o)StringtoDetailedString()StringtoString()
-
-
-
Field Detail
-
useCaseOrientedMapping
public boolean useCaseOrientedMapping
Flag whether to use case-oriented mapping.
-
queryNodes
public NESTGraphItemObject[] queryNodes
Contains all not yet investigated GraphNodes of the query.
-
queryEdges
public NESTGraphItemObject[] queryEdges
Contains all not yet investigated GraphEdges of the query.
-
caseNodes
public NESTGraphItemObject[] caseNodes
Contains all not yet mapped GraphNodes of the case.
-
caseEdges
public NESTGraphItemObject[] caseEdges
Contains all not yet mapped GraphEdges of the case.
-
requiredNullMappingsForNode
public Map<String,Integer> requiredNullMappingsForNode
Required for deciding whether to add null mappings for nodes.
-
heuristic
public AStarHeuristic heuristic
A* dependent heuristic for estimating similarities of all not yet mapped graph items of the query.
-
mappedItems
public Set<AStarGraphItemMapping> mappedItems
Contains the mappings so far for the solution.
-
simPartial
public double simPartial
The sum of similarities of all already mapped graph items.
-
simEstimate
public double simEstimate
The current sum of estimated similarities of all not yet mapped graph items.
-
sim
public double sim
The current total similarity for this solution.
-
solutionID
public long solutionID
The unique ID of the CaseSolution.
-
-
Constructor Detail
-
AStarCaseSolution
public AStarCaseSolution(long solutionID)
Standard constructor
-
AStarCaseSolution
public AStarCaseSolution(long solutionID, AStarCaseSolution onBase)
-
-
Method Detail
-
compareTo
public int compareTo(AStarCaseSolution o)
- Specified by:
compareToin interfaceComparable<AStarCaseSolution>
-
toDetailedString
public String toDetailedString()
-
-