|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.games.PayoffMatrix
public class PayoffMatrix
| 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 |
|---|
public PayoffMatrix(int rows,
int cols)
public PayoffMatrix(int rows,
int cols,
int defaultValue)
| Method Detail |
|---|
public float getRowPayoff(int row,
int col)
public float getColPayoff(int row,
int col)
public float getRowPayoff(GameChoice row,
GameChoice col)
public float getColPayoff(GameChoice row,
GameChoice col)
public void setPayoff(int row,
int col,
float rowVal,
float colVal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||