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, setState
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgressReport, getResult, getVersion
public void initializeData()
AbstractAlgorithm
initializeData
in class AbstractAlgorithm<PuzzleInstance>
public void runAlgorithm()
AlgorithmInterface
public 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()
AlgorithmInterface
public void parseArguments(java.lang.String args)
AlgorithmInterface
public java.lang.String argumentFormat()
AlgorithmInterface