|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface World
Basic specification of a world, which ensures that all worlds have certain methods (functions) and can be built, traversed and can have a physical distance measure defined.
| Method Summary | |
|---|---|
void |
build()
Allows a world to be built once all necessary aspects of it have been specified. |
boolean |
getIsBuilt()
Allows you to determine if the world has been built yet or not. |
State |
getNewState(State oldState,
Action action)
Given a state and an action, returns the resulting state. |
int |
getNumberOfStates()
|
State |
getStartingState()
|
java.util.List |
getStateList()
Returns a list of all the states (i.e. |
boolean |
isTerminalState(State state)
Reports whether this particular state is a terminal state. |
java.util.Iterator |
stateIterator()
Returns an object which lets you iterate over all states (positions) in the world. |
java.lang.String |
toText()
Returns a text representation of the world, if possible. |
| Method Detail |
|---|
void build()
boolean getIsBuilt()
java.lang.String toText()
java.util.Iterator stateIterator()
java.util.List getStateList()
State getStartingState()
int getNumberOfStates()
State getNewState(State oldState,
Action action)
boolean isTerminalState(State state)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||