|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GameAgent
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 |
|---|
static final int NULL
static final int LEFT
static final int RIGHT
| Method Detail |
|---|
void setPayoff(float payoff)
float getPayoff()
int getStrategy()
void setStrategy(int newStrategy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||