public static class AgentQSourceMap.HashMapAgentQSourceMap extends java.lang.Object implements AgentQSourceMap
AgentQSourceMap
in which the sources are specified by a hash map.AgentQSourceMap.HashMapAgentQSourceMap, AgentQSourceMap.MAQLControlledQSourceMap
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Integer,QSourceForSingleAgent> |
qSourceMapping |
Constructor and Description |
---|
HashMapAgentQSourceMap(java.util.Map<java.lang.Integer,QSourceForSingleAgent> qSourceMapping)
Initializes with the Q-source hashmap ot be used.
|
Modifier and Type | Method and Description |
---|---|
QSourceForSingleAgent |
agentQSource(int agentNum)
Returns a QSource which can be used to query the Q-values of a given agent.
|
void |
setQSourceMap(java.util.Map<java.lang.Integer,QSourceForSingleAgent> qSourceMapping)
Sets the Q-source hash map to be used.
|
protected java.util.Map<java.lang.Integer,QSourceForSingleAgent> qSourceMapping
public HashMapAgentQSourceMap(java.util.Map<java.lang.Integer,QSourceForSingleAgent> qSourceMapping)
qSourceMapping
- the source hash map to be used.public void setQSourceMap(java.util.Map<java.lang.Integer,QSourceForSingleAgent> qSourceMapping)
qSourceMapping
- the source hash map to be used.public QSourceForSingleAgent agentQSource(int agentNum)
AgentQSourceMap
agentQSource
in interface AgentQSourceMap
agentNum
- the agent for whom the qSource is to be providedQSourceForSingleAgent
object that allows the Q-values for a single agent to be queried.