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.String,QSourceForSingleAgent> |
qSourceMapping |
Constructor and Description |
---|
AgentQSourceMap.HashMapAgentQSourceMap(java.util.Map<java.lang.String,QSourceForSingleAgent> qSourceMapping)
Initializes with the Q-source hashmap ot be used.
|
Modifier and Type | Method and Description |
---|---|
QSourceForSingleAgent |
agentQSource(java.lang.String agentName)
Returns a QSource which can be used to query the Q-values of a given agent.
|
void |
setQSourceMap(java.util.Map<java.lang.String,QSourceForSingleAgent> qSourceMapping)
Sets the Q-source hash map to be used.
|
protected java.util.Map<java.lang.String,QSourceForSingleAgent> qSourceMapping
public AgentQSourceMap.HashMapAgentQSourceMap(java.util.Map<java.lang.String,QSourceForSingleAgent> qSourceMapping)
qSourceMapping
- public void setQSourceMap(java.util.Map<java.lang.String,QSourceForSingleAgent> qSourceMapping)
qSourceMapping
- the source hash map to be used.public QSourceForSingleAgent agentQSource(java.lang.String agentName)
AgentQSourceMap
agentQSource
in interface AgentQSourceMap
agentName
- the name of the agent for which Q-values will be queried.QSourceForSingleAgent
object that allows the Q-values for a single agent to be queried.