public class IsSolvableIslands extends PebbleAlgorithm
| Constructor and Description |
|---|
IsSolvableIslands() |
| 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() |
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.
|
double |
getVersion()
Mostly for use in comparing results from previous versions of algorithms, and/or so we can know whether or not
data in the database is based on an older version of the algorithm.
|
void |
initializeMoreData()
Called by initializeData which is called by setPuzzleData.
|
AlgorithmStates |
next()
Next Step in the Islands 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.
|
getPebbleState, getProblemType, initializeData, setPebbleStategetNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setStatepublic java.lang.String getCurrentProblemData()
public java.lang.String getResult()
AlgorithmInterfacegetResult in interface AlgorithmInterface<PebbleInstance>getResult in class PebbleAlgorithmpublic java.lang.String getProgressReport()
PebbleAlgorithmgetProgressReport in interface AlgorithmInterface<PebbleInstance>getProgressReport in class PebbleAlgorithmpublic AlgorithmStates next()
public void runAlgorithm()
AlgorithmInterfacepublic void initializeMoreData()
PebbleAlgorithminitializeMoreData in class PebbleAlgorithmpublic boolean countsOperations()
public double getVersion()
AlgorithmInterfacepublic void quit()
AlgorithmInterfacequit in interface AlgorithmInterface<PebbleInstance>quit in class PebbleAlgorithmpublic void parseArguments(java.lang.String args)
AlgorithmInterfacepublic java.lang.String argumentFormat()
AlgorithmInterface