public class WeightFunctionCheck extends EfficientPebbleAlgorithm
| Constructor and Description |
|---|
WeightFunctionCheck() |
| 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 |
getResult()
Return the result of the algorithm in the context of the problem.
|
int |
getRoot() |
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.
|
void |
parseArguments(java.lang.String args)
Sends a string that the user can enter to the algorithm.
|
void |
reinitializeMoreData()
If resetWithThesePebbles is called, what else needs to be reinitialized before the algorithm can be run?
This is supposed to be much more efficient than calling initializeMoreData.
|
void |
runAlgorithm()
Runs the Algorithm.
|
void |
setRoot(int root)
Set the root to check for reachability instead of solvability.
|
getCovered, getCurrentProblemData, resetWithThesePebbles, resetWithThesePebblesgetPebbleState, getProblemType, getProgressReport, initializeData, quit, setPebbleStategetNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setStatepublic int getRoot()
public void setRoot(int root)
root - public void reinitializeMoreData()
EfficientPebbleAlgorithmreinitializeMoreData in class EfficientPebbleAlgorithmpublic void initializeMoreData()
PebbleAlgorithminitializeMoreData in class EfficientPebbleAlgorithmpublic void runAlgorithm()
AlgorithmInterfacepublic boolean countsOperations()
public double getVersion()
AlgorithmInterfacepublic java.lang.String getResult()
AlgorithmInterfacegetResult in interface AlgorithmInterface<PebbleInstance>getResult in class PebbleAlgorithmpublic void parseArguments(java.lang.String args)
AlgorithmInterfacepublic java.lang.String argumentFormat()
AlgorithmInterface