public abstract class TwoPebblingGeneric extends PebbleAlgorithm
Constructor and Description |
---|
TwoPebblingGeneric() |
Modifier and Type | Method and Description |
---|---|
void |
addAllViolators(java.util.ArrayList<int[]> violator) |
void |
addViolator(int[] violator) |
java.lang.String |
argumentFormat()
Describe how the argument(s) to the algorithm should be formatted, if applicable.
|
boolean |
countsOperations() |
java.lang.String |
getCurrentProblemData() |
int |
getPebblingNumber() |
java.lang.String |
getResult()
Get the result of the algorithm.
|
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 |
parseArguments(java.lang.String args)
Sends a string that the user can enter to the algorithm.
|
void |
runAlgorithm()
Run the algorithm.
|
void |
setPebblingNumber(int pebNum)
If the pebbling number is being set by an outside source, it can set it using this method.
|
void |
setUseThreads(boolean useThreads) |
getPebbleState, getProblemType, getProgressReport, initializeData, initializeMoreData, quit, setPebbleState
getNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setState
public void setUseThreads(boolean useThreads)
public void addViolator(int[] violator)
public void addAllViolators(java.util.ArrayList<int[]> violator)
public void runAlgorithm()
public void setPebblingNumber(int pebNum)
pebNum
- The pebbling number for this algorithm to use.public int getPebblingNumber()
public java.lang.String getResult()
getResult
in interface AlgorithmInterface<PebbleInstance>
getResult
in class PebbleAlgorithm
public java.lang.String getCurrentProblemData()
public boolean countsOperations()
public double getVersion()
AlgorithmInterface
public void parseArguments(java.lang.String args)
AlgorithmInterface
public java.lang.String argumentFormat()
AlgorithmInterface