RePast
v. 2.0

uchicago.src.sim.games
Interface GameAgent

All Known Implementing Classes:
EnnAgent

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

NULL

public static final int NULL
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values
Method Detail

setPayoff

public void setPayoff(float payoff)
Sets the payoff for this agent.


getPayoff

public float getPayoff()
Gets the current payoff for this agent.


getStrategy

public int getStrategy()
Gets the current strategy (GameAgent.LEFT or GameAgent.RIGHT)


setStrategy

public void setStrategy(int newStrategy)
Sets the current strategy (GameAgent.LEFT or GameAgent.RIGHT)


RePast
v. 2.0

Bug reports and feature requests to RePast