public interface WorldObserver
Worldobservers. Observers are told when a game states and in what state, what each interaction in the world was as they happen, and what the final state of the world is when a game ends.
|Modifier and Type||Method and Description|
This method is called whenever a game in a world ends.
This method is called whenever a new game in a world is starting.
This method is called whenever an interaction in the world occurs.
void gameStarting(State s)
s- the state in which the world is starting.
void observe(State s, JointAction ja, java.util.Map<java.lang.String,java.lang.Double> reward, State sp)
s- the previous state of the world
ja- the joint action taken in the world
reward- the joint reward received by the agents
sp- the next state of the world
void gameEnding(State s)
s- the final state of the world when it ends.