Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.games
Interface GameAgent

All Known Implementing Classes:
  EnnAgent

    public interface GameAgent

Interface for agents who want to play Games.

Version:
  $Revision: 1.4 $ $Date: 2004/11/03 19:51:03 $
Author:
  Nick Collier

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

    static final int NULL

See Also:
  Constant Field Values

### LEFT

    static final int LEFT

See Also:
  Constant Field Values

### RIGHT

    static final int RIGHT

See Also:
  Constant Field Values

Method Detail

### setPayoff

    void setPayoff(float payoff)

  Sets the payoff for this agent.

### getPayoff

    float getPayoff()

  Gets the current payoff for this agent.

### getStrategy

    int getStrategy()

  Gets the current strategy (GameAgent.LEFT or GameAgent.RIGHT)

### setStrategy

    void setStrategy(int newStrategy)

  Sets the current strategy (GameAgent.LEFT or GameAgent.RIGHT)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD