public interface QSourceForSingleAgent
JAQValue
returned can have their q datamember directly modified to modify the Q-values stored and retreived in this object.
A hash-backed implementation is also provided in this interface definition.Modifier and Type | Interface and Description |
---|---|
static class |
QSourceForSingleAgent.HashBackedQSource
An implementation of the
QSourceForSingleAgent interface that has Q-values backed by hashmaps. |
Modifier and Type | Method and Description |
---|---|
JAQValue |
getQValueFor(State s,
JointAction ja)
Returns a Q-value (represented with a
JAQValue object) stored for the given state and joint action. |
JAQValue getQValueFor(State s, JointAction ja)
JAQValue
object) stored for the given state and joint action. Modification to the returned object
will directly modify the stored value that will be returned in subsequent calls to this method.s
- the Q-value's associated stateja
- the Q-value's associated joint acitonJAQValue
for the given state and joint action.