protected static class SingleStageNormalFormGame.SingleStageNormalFormJointRewardFunction extends java.lang.Object implements JointRewardFunction
Constructor and Description |
---|
SingleStageNormalFormJointRewardFunction(int nPlayers,
SingleStageNormalFormGame.ActionNameMap[] actionNameToIndex,
SingleStageNormalFormGame.AgentPayoutFunction[] payouts) |
Modifier and Type | Method and Description |
---|---|
double[] |
reward(State s,
JointAction ja,
State sp)
Returns the reward received by each agent specified in the joint action.
|
public SingleStageNormalFormJointRewardFunction(int nPlayers, SingleStageNormalFormGame.ActionNameMap[] actionNameToIndex, SingleStageNormalFormGame.AgentPayoutFunction[] payouts)
public double[] reward(State s, JointAction ja, State sp)
JointRewardFunction
reward
in interface JointRewardFunction
s
- that state in which the joint action was taken.ja
- the joint action taken.sp
- the resulting state from taking the joint action