uchicago.src.sim.games
Class PayoffMatrix

java.lang.Object
  extended by uchicago.src.sim.games.PayoffMatrix

public class PayoffMatrix
extends java.lang.Object


Constructor Summary
PayoffMatrix(int rows, int cols)
           
PayoffMatrix(int rows, int cols, int defaultValue)
           
 
Method Summary
 float getColPayoff(GameChoice row, GameChoice col)
           
 float getColPayoff(int row, int col)
           
 float getRowPayoff(GameChoice row, GameChoice col)
           
 float getRowPayoff(int row, int col)
          Returns the payoff for row player.
 void setPayoff(int row, int col, float rowVal, float colVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayoffMatrix

public PayoffMatrix(int rows,
                    int cols)

PayoffMatrix

public PayoffMatrix(int rows,
                    int cols,
                    int defaultValue)
Method Detail

getRowPayoff

public float getRowPayoff(int row,
                          int col)
Returns the payoff for row player.


getColPayoff

public float getColPayoff(int row,
                          int col)

getRowPayoff

public float getRowPayoff(GameChoice row,
                          GameChoice col)

getColPayoff

public float getColPayoff(GameChoice row,
                          GameChoice col)

setPayoff

public void setPayoff(int row,
                      int col,
                      float rowVal,
                      float colVal)