T - A - public class ReducedGraphGenerator<T,A> extends java.lang.Object implements GraphGenerator<T,A>
| Constructor and Description |
|---|
ReducedGraphGenerator(GraphGenerator<T,A> basis)
Create a new ReducedGraphGenerator that uses the given graph generator as a
basis.
|
| Modifier and Type | Method and Description |
|---|---|
GoalTester<T> |
getGoalTester() |
RootGenerator<T> |
getRootGenerator() |
SuccessorGenerator<T,A> |
getSuccessorGenerator() |
boolean |
isSelfContained()
Indicates if the nodes are selfcontained for the solution or if the solution path is needed.
|
void |
setNodeNumbering(boolean nodenumbering)
Indicates whether the nodes should get a unique id, or if all should get the same id -1
This is important if one wants to guarantee that the explored graph is expanded as a tree
|
public ReducedGraphGenerator(GraphGenerator<T,A> basis)
basis - the graph generator to use as a basispublic RootGenerator<T> getRootGenerator()
getRootGenerator in interface GraphGenerator<T,A>public SuccessorGenerator<T,A> getSuccessorGenerator()
getSuccessorGenerator in interface GraphGenerator<T,A>public GoalTester<T> getGoalTester()
getGoalTester in interface GraphGenerator<T,A>public boolean isSelfContained()
GraphGeneratorisSelfContained in interface GraphGenerator<T,A>true if every node contains every information needed for the solution,
false otherwise.public void setNodeNumbering(boolean nodenumbering)
GraphGeneratorsetNodeNumbering in interface GraphGenerator<T,A>