public class ECorrelatedQJointPolicy extends MAQSourcePolicy implements EnumerablePolicy
| Modifier and Type | Field and Description | 
|---|---|
protected double | 
epsilon
The epsilon parameter specifying how often random joint actions are returned 
 | 
protected CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective | 
objectiveType
The correlated Q objective type being solved 
 | 
protected MultiAgentQSourceProvider | 
qSourceProvider
The multi-agent q-source provider 
 | 
agentsInJointPolicy, agentsSynchronizedSoFar, lastSyncedState, lastSynchronizedJointAction| Constructor and Description | 
|---|
ECorrelatedQJointPolicy(CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective objectiveType,
                       double epsilon)
Initializes with the correlated equilibrium objective and the epsilon probability of a random joint action. 
 | 
ECorrelatedQJointPolicy(double epsilon)
Initializes with the epislon probability of a random joint action. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Action | 
action(State s)
This method will return an action sampled by the policy for the given state. 
 | 
double | 
actionProb(State s,
          Action a)
Returns the probability/probability density that the given action will be taken in the given state. 
 | 
JointPolicy | 
copy()
Creates a copy of this joint policy and returns it. 
 | 
boolean | 
definedFor(State s)
Specifies whether this policy is defined for the input state. 
 | 
java.util.List<ActionProb> | 
policyDistribution(State s)
This method will return action probability distribution defined by the policy. 
 | 
void | 
setCorrelatedQObjective(CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective objectiveType)
Sets the correlated equilibrium objective to be solved. 
 | 
void | 
setQSourceProvider(MultiAgentQSourceProvider provider)
Sets the  
MultiAgentQSourceProvider that will be used to define this object's joint policy. | 
void | 
setTargetAgent(int agentNum)
Sets the target privileged agent from which this joint policy is defined. 
 | 
getAgentsInJointPolicy, getAgentSynchronizedActionSelection, getAllJointActions, setAgentsInJointPolicy, setAgentsInJointPolicyFromWorld, setAgentTypesInJointPolicyprotected MultiAgentQSourceProvider qSourceProvider
protected double epsilon
protected CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective objectiveType
public ECorrelatedQJointPolicy(double epsilon)
epsilon - the probability that a random joint action is returned.public ECorrelatedQJointPolicy(CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective objectiveType, double epsilon)
objectiveType - the correlated equilibirum objective.epsilon - the probability that a random joint action is returned.public void setCorrelatedQObjective(CorrelatedEquilibriumSolver.CorrelatedEquilibriumObjective objectiveType)
objectiveType - the correlated equilibrium objective to be solved.public void setTargetAgent(int agentNum)
JointPolicysetTargetAgent in class JointPolicyagentNum - the target agent.public JointPolicy copy()
JointPolicycopy in class JointPolicypublic Action action(State s)
Policypublic double actionProb(State s, Action a)
PolicyactionProb in interface Policys - the state of interesta - the action that may be taken in the statepublic java.util.List<ActionProb> policyDistribution(State s)
EnumerablePolicypolicyDistribution in interface EnumerablePolicys - the state for which an action distribution should be returnedpublic boolean definedFor(State s)
PolicydefinedFor in interface Policys - the input state to test for whether this policy is definedState s, false otherwise.public void setQSourceProvider(MultiAgentQSourceProvider provider)
MAQSourcePolicyMultiAgentQSourceProvider that will be used to define this object's joint policy.setQSourceProvider in class MAQSourcePolicyprovider - the MultiAgentQSourceProvider that will be used to define this object's joint policy.