|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for agents who want to play Games.
| Field Summary | |
static int |
LEFT
|
static int |
NULL
|
static int |
RIGHT
|
| Method Summary | |
float |
getPayoff()
Gets the current payoff for this agent. |
int |
getStrategy()
Gets the current strategy (GameAgent.LEFT or GameAgent.RIGHT) |
void |
setPayoff(float payoff)
Sets the payoff for this agent. |
void |
setStrategy(int newStrategy)
Sets the current strategy (GameAgent.LEFT or GameAgent.RIGHT) |
| Field Detail |
public static final int NULL
public static final int LEFT
public static final int RIGHT
| Method Detail |
public void setPayoff(float payoff)
public float getPayoff()
public int getStrategy()
public void setStrategy(int newStrategy)
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||