|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdlife.rl.State
public abstract class State
Base class for representing the state of a TD-based reinforcement learning agent. This class ensures that each State provide hashCode and equals methods that can be used by the QTable class.
| Constructor Summary | |
|---|---|
State()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Determine if two states are equal. |
int |
hashCode()
Return a hash code for this state. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State()
| Method Detail |
|---|
public int hashCode()
Objects representing the same state must return the same hash code. It is not necessary that every object representing a different state return a different hash code (this may in fact be impossible). However, performance will be better if distinct states produce distinct hash codes as much as is possible.
hashCode in class Objectpublic boolean equals(Object o)
Two States that represent the same physical state of the agent must be considered equal by this method.
equals in class Object
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||