net.pakl.rl
Interface World

All Known Implementing Classes:
MazeWorld, SentenceWorld, SentenceWorldParallel

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

build

void build()
Allows a world to be built once all necessary aspects of it have been specified.


getIsBuilt

boolean getIsBuilt()
Allows you to determine if the world has been built yet or not.


toText

java.lang.String toText()
Returns a text representation of the world, if possible.


stateIterator

java.util.Iterator stateIterator()
Returns an object which lets you iterate over all states (positions) in the world.


getStateList

java.util.List getStateList()
Returns a list of all the states (i.e. positions) in the world.


getStartingState

State getStartingState()

getNumberOfStates

int getNumberOfStates()

getNewState

State getNewState(State oldState,
                  Action action)
Given a state and an action, returns the resulting state.


isTerminalState

boolean isTerminalState(State state)
Reports whether this particular state is a terminal state.