public abstract class Problem
extends java.lang.Object
Constructor and Description |
---|
Problem() |
Modifier and Type | Method and Description |
---|---|
State |
getCurrentState()
Gets the current state of the problem.
|
java.lang.String |
getIntroduction()
Gets an explanatory introduction string for the problem.
|
java.util.List<Move> |
getMoves()
Gets the list of moves for this problem.
|
void |
setCurrentState(State currentState)
Sets the current state of the problem.
|
void |
setIntroduction(java.lang.String introduction)
Sets the introduction string for this problem.
|
void |
setMoves(java.util.List<Move> moves)
Sets the list of moves for this problem.
|
abstract boolean |
success()
Determines whether the current state of this problem is a success.
|
public abstract boolean success()
public State getCurrentState()
public void setCurrentState(State currentState)
currentState
- the current statepublic java.lang.String getIntroduction()
public void setIntroduction(java.lang.String introduction)
introduction
- the introduction stringpublic java.util.List<Move> getMoves()
public void setMoves(java.util.List<Move> moves)
moves
- the list of moves