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 booleanDEFAULT_ALLOW_CASE_ORIENTED_MAPPINGDefault flag for allowing case-oriented mapping is truestatic booleanDEFAULT_ALLOW_PRE_INITIALIZATIONDefault flag for allowing pre-initialization of initial solution is truestatic intDEFAULT_MAX_QUEUE_SIZEDefault maximum size of the solution queue is -1static booleanDEFAULT_ONLY_TEST_FOR_EQUALITYDefault flag for testing only for equality between query and case graph is falsestatic booleanDEFAULT_RETURN_LOCAL_EDGE_SIMILARITIESDefault flag for whether local edge similarities should be returned falsestatic booleanDEFAULT_RETURN_LOCAL_NODE_SIMILARITIESDefault flag for whether local node similarities should be returned falsestatic intDEFAULT_TIMEOUTDefault 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 intgetMaxQueueSize()Gets the queue size of the AStarSimilaritySet<NESTEdgeObject>getOriginalQueryEdges()Set<NESTNodeObject>getOriginalQueryNodes()intgetTimeout()booleanisAllowCaseOrientedMapping()booleanisAllowPreInitializationOfSolution()booleanisOnlyTestForEquality()booleanisReturnLocalEdgeSimilarities()booleanisReturnLocalNodeSimilarities()booleanisReturnLocalSimilarities()voidsetAllowCaseOrientedMapping(boolean allowCaseOrientedMapping)voidsetAllowPreInitializationOfSolution(boolean allowPreInitializationOfSolution)voidsetMaxQueueSize(int qSize)Sets the maximum size of the queue that stores the (partial) solutions of the A* algorithm.voidsetOnlyTestForEquality(boolean onlyTestForEquality)voidsetOriginalQueryEdges(Set<NESTEdgeObject> originalQueryEdges)The original set of edges of the query.voidsetOriginalQueryNodes(Set<NESTNodeObject> originalQueryNodes)The original set of nodes of the query.voidsetReturnLocalEdgeSimilarities(boolean returnLocalEdgeSimilarities)voidsetReturnLocalNodeSimilarities(boolean returnLocalNodeSimilarities)voidsetReturnLocalSimilarities(boolean returnLocalSimilarities)voidsetTimeout(int timeoutSeconds)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 timeoutSeconds)
Sets a timeout in seconds for terminating the computation. Setting a negative value disables timeout.- Parameters:
timeoutSeconds- in seconds for terminating the computation
-
-