public abstract class BreadthFirstSearchSkeletonAlgorithm extends AbstractAlgorithm<PuzzleInstance>
| Constructor and Description |
|---|
BreadthFirstSearchSkeletonAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
argumentFormat()
Describe how the argument(s) to the algorithm should be formatted, if applicable.
|
boolean |
countsOperations() |
java.lang.String |
getCurrentProblemData() |
int |
getDistance(Vertex v) |
Vertex |
getParent(Vertex v) |
java.lang.Class<PuzzleInstance> |
getProblemType() |
Vertex |
getSource() |
void |
initializeData()
setProblemData is already implemented for you, but you might need to initialize other data related to your
algorithm.
|
void |
parseArguments(java.lang.String args)
Sends a string that the user can enter to the algorithm.
|
void |
quit()
(Hopefully) gracefully stop the computation.
|
void |
runAlgorithm()
Runs the Algorithm.
|
getNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setStateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProgressReport, getResult, getVersionpublic void initializeData()
AbstractAlgorithminitializeData in class AbstractAlgorithm<PuzzleInstance>public void runAlgorithm()
AlgorithmInterfacepublic Vertex getParent(Vertex v)
v - the vertex.public int getDistance(Vertex v)
v - the vertex.public Vertex getSource()
public java.lang.String getCurrentProblemData()
public java.lang.Class<PuzzleInstance> getProblemType()
public boolean countsOperations()
public void quit()
AlgorithmInterfacepublic void parseArguments(java.lang.String args)
AlgorithmInterfacepublic java.lang.String argumentFormat()
AlgorithmInterface