public abstract class DepthFirstSearchSkeletonAlgorithm extends AbstractAlgorithm<PuzzleInstance>
| Constructor and Description |
|---|
DepthFirstSearchSkeletonAlgorithm() |
| 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 |
getEntryTime(Vertex v) |
int |
getExitTime(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.
|
boolean |
isDiscovered(Vertex v) |
boolean |
isFinished() |
boolean |
isProcessed(Vertex v) |
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.
|
void |
setFinished(boolean finished) |
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 boolean isFinished()
public void setFinished(boolean finished)
public boolean isDiscovered(Vertex v)
public boolean isProcessed(Vertex v)
public int getEntryTime(Vertex v)
public int getExitTime(Vertex v)
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