public abstract class PebbleAlgorithm extends AbstractAlgorithm<PebbleInstance>
| Constructor and Description |
|---|
PebbleAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
PebbleAlgorithmStates |
getPebbleState()
Returns the PebbleState without allowing it to be changed
|
java.lang.Class<PebbleInstance> |
getProblemType() |
java.lang.String |
getProgressReport()
The Default implementation for a pebble algorithm.
|
java.lang.String |
getResult()
Return the result of the algorithm in the context of the problem.
|
void |
initializeData()
setProblemData is already implemented for you, but you might need to initialize other data related to your
algorithm.
|
abstract void |
initializeMoreData()
Called by initializeData which is called by setPuzzleData.
|
void |
quit()
(Hopefully) gracefully stop the computation.
|
void |
setPebbleState(PebbleAlgorithmStates pebblingAlgorithmState)
Sets the state of the pebbling algorithm, and also updates the state of the algorithm in general.
|
getNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setStateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitargumentFormat, countsOperations, getCurrentProblemData, getVersion, parseArguments, runAlgorithmpublic final void initializeData()
AbstractAlgorithminitializeData in class AbstractAlgorithm<PebbleInstance>public abstract void initializeMoreData()
public java.lang.String getResult()
AlgorithmInterfacepublic java.lang.String getProgressReport()
public void setPebbleState(PebbleAlgorithmStates pebblingAlgorithmState)
pebblingAlgorithmState - The Algorithm State in terms of Pebbling Algorithmspublic PebbleAlgorithmStates getPebbleState()
public java.lang.Class<PebbleInstance> getProblemType()
public void quit()
AlgorithmInterface