net.sourceforge.jabm.agent
Interface Agent

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractAgent

public interface Agent
extends EventListener

A simulated agent. Every agent has a strategy, which specifies the behaviour of the agent.

 

Method Summary
 double getPayoff()
           
 double getPayoffDelta()
           
 Strategy getStrategy()
           
 void initialise()
          Initialise the agent.
 boolean isInteracted()
          Find out whether the agent has interacted with the environment or other agents.
 void setScheduler(EventScheduler eventScheduler)
          Set the event scheduler for this agent.
 void setStrategy(Strategy strategy)
          Configure the current Strategy for this agent.
 
Methods inherited from interface net.sourceforge.jabm.event.EventListener
eventOccurred
 

Method Detail

getPayoff

double getPayoff()
Returns:
the accrued payoff to the agent during the course of the simulation.

getPayoffDelta

double getPayoffDelta()
Returns:
the change in payoff during the most recent period.

initialise

void initialise()
Initialise the agent.


isInteracted

boolean isInteracted()
Find out whether the agent has interacted with the environment or other agents.


setScheduler

void setScheduler(EventScheduler eventScheduler)
Set the event scheduler for this agent.


getStrategy

Strategy getStrategy()
Returns:
the current Strategy used by this agent.

setStrategy

void setStrategy(Strategy strategy)
Configure the current Strategy for this agent.