public interface WorldObserver
World
observers. 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 |
---|---|
void |
gameEnding(State s)
This method is called whenever a game in a world ends.
|
void |
gameStarting(State s)
This method is called whenever a new game in a world is starting.
|
void |
observe(State s,
JointAction ja,
double[] reward,
State sp)
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, double[] reward, State sp)
s
- the previous state of the worldja
- the joint action taken in the worldreward
- the joint reward received by the agentssp
- the next state of the worldvoid gameEnding(State s)
s
- the final state of the world when it ends.