|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.repeatedgames.rgsolve.games.Game
edu.princeton.repeatedgames.rgsolve.games.SymmetricBimatrixGame
public class SymmetricBimatrixGame
A class for symmetric matrix games
Field Summary | |
---|---|
private double[][] |
G
G is payoff matrix to player 1 G' is payoff matrix to player 2 |
private static long |
serialVersionUID
Serialization ID |
Fields inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
description, extension |
Constructor Summary | |
---|---|
SymmetricBimatrixGame(double[][] G,
double delta)
constructor |
|
SymmetricBimatrixGame(double[][] G,
double delta,
BitSetFixed usableActions,
java.lang.String description)
constructor |
|
SymmetricBimatrixGame(int m,
double delta)
constructor for an empty game |
Method Summary | |
---|---|
double |
payoff1(int a1,
int a2)
payoff to player 1 |
double |
payoff2(int a1,
int a2)
payoff to player 2 |
void |
setPayoff(int a1,
int a2,
double g)
Sets the payoff at action (a1,a2) to to payoffs (g1,g2) |
Methods inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
actionUsable, copyUsableActions, delta, m, m1, m2, payoff, payoff, setActionUsable, setDescription, setDiscount, usableActionsDefined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private double[][] G
Constructor Detail |
---|
public SymmetricBimatrixGame(int m, double delta)
m
- number of actionsdelta
- discount ratepublic SymmetricBimatrixGame(double[][] G, double delta)
G
- payoff matrixdelta
- discount ratepublic SymmetricBimatrixGame(double[][] G, double delta, BitSetFixed usableActions, java.lang.String description)
G
- payoff matrixdelta
- discount rateusableActions
- actions that are usable in equilibriumdescription
- game notesMethod Detail |
---|
public double payoff1(int a1, int a2)
Game
payoff1
in class Game
a1
- player 1 actiona2
- player 2 action
public double payoff2(int a1, int a2)
Game
payoff2
in class Game
a1
- player 1 actiona2
- player 2 action
public void setPayoff(int a1, int a2, double g)
a1
- action for player 1a2
- action for player 2g
- payoff to player 1 at a=(a1, a2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |