|
||||||||||
| 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.specialgames.ArmsRace
public class ArmsRace
An "Arms Race", where action profile (a1, a2) yields military expenditures Xi = max(i) * ai/(mi-1). Utility is then U(i) = threat(i)*(Xi - Xj) - fatigue(i) * Xi^2.
| Field Summary | |
|---|---|
(package private) double |
fatigue1
quadratic cost of expenditure to player 1 |
(package private) double |
fatigue2
quadratic cost of expenditure to player 2 |
(package private) double |
max1
maximum expenditure of player 1 |
(package private) double |
max2
maximum expenditure of player 2 |
private static long |
serialVersionUID
Serialization ID |
(package private) double |
threat1
Linear value of expenditure excess of player 1 relative to 2 |
(package private) double |
threat2
Linear value of expenditure excess of player 2 relative to 1 |
| Fields inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
|---|
description, extension |
| Constructor Summary | |
|---|---|
ArmsRace(int m1,
int m2,
double delta,
double threat1,
double threat2,
double fatigue1,
double fatigue2,
double max1,
double max2)
|
|
| Method Summary | |
|---|---|
double |
payoff1(int a1,
int a2)
payoff to player 1 |
double |
payoff2(int a1,
int a2)
payoff to player 2 |
| Methods inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
|---|
actionUsable, copyUsableActions, delta, m, m1, m2, 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
double max1
double threat1
double fatigue1
double max2
double threat2
double fatigue2
| Constructor Detail |
|---|
public ArmsRace(int m1,
int m2,
double delta,
double threat1,
double threat2,
double fatigue1,
double fatigue2,
double max1,
double max2)
| Method Detail |
|---|
public double payoff1(int a1,
int a2)
Game
payoff1 in class Gamea1 - player 1 actiona2 - player 2 action
public double payoff2(int a1,
int a2)
Game
payoff2 in class Gamea1 - player 1 actiona2 - player 2 action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||