Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.princeton.repeatedgames.rgsolve.games.specialgames
Class PrisonersDilemma

    java.lang.Object
      edu.princeton.repeatedgames.rgsolve.games.Game
          edu.princeton.repeatedgames.rgsolve.games.BimatrixGame
              edu.princeton.repeatedgames.rgsolve.games.specialgames.PrisonersDilemma

All Implemented Interfaces:
  java.io.Serializable

    public final class PrisonersDilemma

extends BimatrixGame
implements java.io.Serializable

The classic Prisoner's Dilemma

See Also:
  Serialized Form

Field Summary
`private static double` | `DEFAULT_DISCOUNT` default discount rate = .7
`private static long` | `serialVersionUID` Serialization ID

Fields inherited from class edu.princeton.repeatedgames.rgsolve.games.Game
`description, extension`

Constructor Summary
`PrisonersDilemma()` Constructs the classic Prisoner's Dilemma
`PrisonersDilemma(double delta)` Constructs the classic Prisoner's Dilemma

Method Summary

Methods inherited from class edu.princeton.repeatedgames.rgsolve.games.BimatrixGame
`payoff1, payoff2, setPayoff`

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

### serialVersionUID

    private static final long serialVersionUID

  Serialization ID

  See Also:
    Constant Field Values

### DEFAULT_DISCOUNT

    private static double DEFAULT_DISCOUNT

  default discount rate = .7

Constructor Detail

### PrisonersDilemma

    public PrisonersDilemma()

  Constructs the classic Prisoner's Dilemma

### PrisonersDilemma

    public PrisonersDilemma(double delta)

  Constructs the classic Prisoner's Dilemma

  Parameters:
    `delta` - discount rate

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD