T
- The type of puzzle that you'll run@Deprecated
public abstract class OldGenericAlgorithm<T extends PuzzleInstance>
extends java.util.Observable
implements java.lang.Runnable
Constructor and Description |
---|
OldGenericAlgorithm()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canBeUsedDuringPlay()
Deprecated.
Should this algorithm be usable from the play screen?
|
void |
continueInThread(java.util.Observer observer)
Deprecated.
There is really no difference between this and runInThread except semantics.
|
PuzzleInstance |
getCopyOfUpdatedPuzzle()
Deprecated.
|
abstract java.lang.String |
getDescriptiveWordForScore()
Deprecated.
|
abstract java.lang.String |
getName()
Deprecated.
The name of the algorithm i.e.
|
long |
getNumberIterations()
Deprecated.
|
int |
getPuzzleID()
Deprecated.
|
abstract java.lang.String |
getResult()
Deprecated.
Return the result of the algorithm in the context of the problem.
|
Solution |
getSolution()
Deprecated.
|
AlgorithmStates |
getState()
Deprecated.
|
abstract java.lang.String |
getStatus()
Deprecated.
HTML text that will be displayed in the Algorithm Runner that explains what the algorithm is doing.
|
long |
getTimeTaken()
Deprecated.
Provide time taken to AlgorithmProcessDialog
|
abstract void |
initializeData()
Deprecated.
Set up anything that your algorithm needs in order to begin running.
|
boolean |
isAutoSave()
Deprecated.
|
boolean |
isDone()
Deprecated.
|
boolean |
isNotDone()
Deprecated.
|
boolean |
isQuit()
Deprecated.
|
boolean |
isReadyToBeSaved()
Deprecated.
|
abstract OldGenericAlgorithm<T> |
newInstance()
Deprecated.
This should just do: return new Blah(); where Blah is the class that subclasses this.
|
void |
requestQuit()
Deprecated.
|
void |
run()
Deprecated.
|
void |
runAlgorithm()
Deprecated.
Runs the Algorithm, continuing from where it left off.
|
void |
runInThread(java.util.Observer observer)
Deprecated.
|
void |
saveOrReplaceAlgorithmSolution()
Deprecated.
|
void |
setAutoSave(boolean autoSave)
Deprecated.
|
void |
setPuzzle(T puzzle)
Deprecated.
Initializes the data and gets the algorithm ready to start.
|
java.lang.String |
toString()
Deprecated.
|
public abstract java.lang.String getName()
public abstract void initializeData()
public abstract java.lang.String getStatus()
public abstract java.lang.String getDescriptiveWordForScore()
public abstract java.lang.String getResult()
public abstract boolean canBeUsedDuringPlay()
public abstract OldGenericAlgorithm<T> newInstance()
public void setPuzzle(T puzzle)
puzzle
- public int getPuzzleID()
public void runAlgorithm()
public PuzzleInstance getCopyOfUpdatedPuzzle()
public void saveOrReplaceAlgorithmSolution()
public AlgorithmStates getState()
public boolean isDone()
public boolean isQuit()
public boolean isNotDone()
public void requestQuit()
public long getNumberIterations()
public Solution getSolution()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isReadyToBeSaved()
public boolean isAutoSave()
public void setAutoSave(boolean autoSave)
public void continueInThread(java.util.Observer observer)
observer
- public void runInThread(java.util.Observer observer)
public void run()
run
in interface java.lang.Runnable
public long getTimeTaken()