Interface SMGraphAStar
-
- All Superinterfaces:
SimilarityMeasure
- All Known Subinterfaces:
SMGraphAStarOne
,SMGraphAStarThree
,SMGraphAStarTwo
- All Known Implementing Classes:
SMGraphAStarImpl
,SMGraphAStarOneImpl
,SMGraphAStarThreeImpl
,SMGraphAStarTwoImpl
public interface SMGraphAStar extends SimilarityMeasure
Interface of the general GraphAStar-SimilarityMeasure.- Author:
- Alexander Stromer
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ALLOW_CASE_ORIENTED_MAPPING
Default flag for allowing case-oriented mapping is truestatic boolean
DEFAULT_ALLOW_PRE_INITIALIZATION
Default flag for allowing pre-initialization of initial solution is truestatic int
DEFAULT_MAX_QUEUE_SIZE
Default maximum size of the solution queue is -1static boolean
DEFAULT_ONLY_TEST_FOR_EQUALITY
Default flag for testing only for equality between query and case graph is falsestatic boolean
DEFAULT_RETURN_LOCAL_EDGE_SIMILARITIES
Default flag for whether local edge similarities should be returned falsestatic boolean
DEFAULT_RETURN_LOCAL_NODE_SIMILARITIES
Default flag for whether local node similarities should be returned falsestatic int
DEFAULT_TIMEOUT
Default timeout in seconds for terminating the computation is -1-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMaxQueueSize()
Gets the queue size of the AStarSimilaritySet<NESTEdgeObject>
getOriginalQueryEdges()
Set<NESTNodeObject>
getOriginalQueryNodes()
int
getTimeout()
boolean
isAllowCaseOrientedMapping()
boolean
isAllowPreInitializationOfSolution()
boolean
isOnlyTestForEquality()
boolean
isReturnLocalEdgeSimilarities()
boolean
isReturnLocalNodeSimilarities()
boolean
isReturnLocalSimilarities()
void
setAllowCaseOrientedMapping(boolean allowCaseOrientedMapping)
void
setAllowPreInitializationOfSolution(boolean allowPreInitializationOfSolution)
void
setMaxQueueSize(int qSize)
Sets the maximum size of the queue that stores the (partial) solutions of the A* algorithm.void
setOnlyTestForEquality(boolean onlyTestForEquality)
void
setOriginalQueryEdges(Set<NESTEdgeObject> originalQueryEdges)
The original set of edges of the query.void
setOriginalQueryNodes(Set<NESTNodeObject> originalQueryNodes)
The original set of nodes of the query.void
setReturnLocalEdgeSimilarities(boolean returnLocalEdgeSimilarities)
void
setReturnLocalNodeSimilarities(boolean returnLocalNodeSimilarities)
void
setReturnLocalSimilarities(boolean returnLocalSimilarities)
void
setTimeout(int timeout)
Sets a timeout in seconds for terminating the computation.-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
-
-
-
Field Detail
-
DEFAULT_MAX_QUEUE_SIZE
static final int DEFAULT_MAX_QUEUE_SIZE
Default maximum size of the solution queue is -1- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
static final int DEFAULT_TIMEOUT
Default timeout in seconds for terminating the computation is -1- See Also:
- Constant Field Values
-
DEFAULT_RETURN_LOCAL_NODE_SIMILARITIES
static final boolean DEFAULT_RETURN_LOCAL_NODE_SIMILARITIES
Default flag for whether local node similarities should be returned false- See Also:
- Constant Field Values
-
DEFAULT_RETURN_LOCAL_EDGE_SIMILARITIES
static final boolean DEFAULT_RETURN_LOCAL_EDGE_SIMILARITIES
Default flag for whether local edge similarities should be returned false- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_PRE_INITIALIZATION
static final boolean DEFAULT_ALLOW_PRE_INITIALIZATION
Default flag for allowing pre-initialization of initial solution is true- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_CASE_ORIENTED_MAPPING
static final boolean DEFAULT_ALLOW_CASE_ORIENTED_MAPPING
Default flag for allowing case-oriented mapping is true- See Also:
- Constant Field Values
-
DEFAULT_ONLY_TEST_FOR_EQUALITY
static final boolean DEFAULT_ONLY_TEST_FOR_EQUALITY
Default flag for testing only for equality between query and case graph is false- See Also:
- Constant Field Values
-
-
Method Detail
-
getOriginalQueryNodes
Set<NESTNodeObject> getOriginalQueryNodes()
- Returns:
- the originalQueryNodes
-
setOriginalQueryNodes
void setOriginalQueryNodes(Set<NESTNodeObject> originalQueryNodes)
The original set of nodes of the query.- Parameters:
originalQueryNodes
- the originalQueryNodes to set
-
getOriginalQueryEdges
Set<NESTEdgeObject> getOriginalQueryEdges()
- Returns:
- the originalQueryEdges
-
setOriginalQueryEdges
void setOriginalQueryEdges(Set<NESTEdgeObject> originalQueryEdges)
The original set of edges of the query.- Parameters:
originalQueryEdges
- the originalQueryEdges to set
-
getMaxQueueSize
int getMaxQueueSize()
Gets the queue size of the AStarSimilarity- Returns:
- The maximum queue size
-
setMaxQueueSize
void setMaxQueueSize(int qSize)
Sets the maximum size of the queue that stores the (partial) solutions of the A* algorithm. If the current queue grows larger than the set maximum, the lowest ranked solutions will be removed. Setting a negative value disables pruning of the queue.- Parameters:
qSize
- The maximum queue size
-
setReturnLocalSimilarities
void setReturnLocalSimilarities(boolean returnLocalSimilarities)
- Parameters:
returnLocalSimilarities
-
-
setReturnLocalNodeSimilarities
void setReturnLocalNodeSimilarities(boolean returnLocalNodeSimilarities)
- Parameters:
returnLocalNodeSimilarities
-
-
setReturnLocalEdgeSimilarities
void setReturnLocalEdgeSimilarities(boolean returnLocalEdgeSimilarities)
- Parameters:
returnLocalEdgeSimilarities
-
-
isReturnLocalSimilarities
boolean isReturnLocalSimilarities()
- Returns:
-
isReturnLocalNodeSimilarities
boolean isReturnLocalNodeSimilarities()
- Returns:
-
isReturnLocalEdgeSimilarities
boolean isReturnLocalEdgeSimilarities()
- Returns:
-
isAllowPreInitializationOfSolution
boolean isAllowPreInitializationOfSolution()
- Returns:
-
setAllowPreInitializationOfSolution
void setAllowPreInitializationOfSolution(boolean allowPreInitializationOfSolution)
- Parameters:
allowPreInitializationOfSolution
-
-
isAllowCaseOrientedMapping
boolean isAllowCaseOrientedMapping()
- Returns:
- Whether case-oriented mapping is allowed or not.
-
setAllowCaseOrientedMapping
void setAllowCaseOrientedMapping(boolean allowCaseOrientedMapping)
- Parameters:
allowCaseOrientedMapping
- flag
-
isOnlyTestForEquality
boolean isOnlyTestForEquality()
- Returns:
- flag
-
setOnlyTestForEquality
void setOnlyTestForEquality(boolean onlyTestForEquality)
- Parameters:
onlyTestForEquality
- flag
-
getTimeout
int getTimeout()
- Returns:
- The timeout for terminating the computation.
-
setTimeout
void setTimeout(int timeout)
Sets a timeout in seconds for terminating the computation. Setting a negative value disables timeout.- Parameters:
timeout
- in seconds for terminating the computation
-
-