public class QLearningStateNode
extends java.lang.Object
QValue
objects for a given hashed sated.Modifier and Type | Field and Description |
---|---|
java.util.List<QValue> |
qEntry
The Q-values for this object's state.
|
HashableState |
s
A hashed state entry for which Q-value will be stored.
|
Constructor and Description |
---|
QLearningStateNode()
Default constructor for serialization purposes
|
QLearningStateNode(HashableState s)
Creates a new object for the given hashed state.
|
Modifier and Type | Method and Description |
---|---|
void |
addQValue(Action a,
double q)
Adds a Q-value to this state with the given numeric Q-value.
|
public HashableState s
public java.util.List<QValue> qEntry
public QLearningStateNode()
public QLearningStateNode(HashableState s)
QValue
objects is initialized to be empty.s
- the hashed state for which to associate Q-valuespublic void addQValue(Action a, double q)
a
- the action this Q-value is foreq
- the numeric Q-value