Class AStarGenericSearch
java.lang.Object
de.uni_trier.wi2.procake.utils.astar.generic.AStarGenericSearch
- Direct Known Subclasses:
AStarSet
This class provides a generic search with an implementation of the A-Star-Algorithm in the
context of mappings for
DataObject
s. Each extension of this generic class at least has to
define an initial state for the search. Starting with the initial state, the algorithm always
tries to map more DataObject
s until all objects are mapped or some objects cannot be
mapped.- Author:
- Maximilian Hoffmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AStarState
createInitialState
(DataObject d1, DataObject d2) The initial state is the very first state that is expanded by the A-Star algorithm.protected List<AStarState>
getSuccessors
(AStarState state) This method has to be called in order to start the search.
-
Constructor Details
-
AStarGenericSearch
-
-
Method Details
-
startSearch
This method has to be called in order to start the search.- Returns:
- a
AStarResult
object that contains the best found mapping and an exception if the mapping is incomplete
-
createInitialState
The initial state is the very first state that is expanded by the A-Star algorithm.- Parameters:
d1
- the firstDataObject
to compared2
- the secondDataObject
to compare- Returns:
- the initial state
-
getSuccessors
-