vitro
Interface Agent<A extends Actor>

All Known Implementing Classes:
RandomAgent, TextAgent

public interface Agent<A extends Actor>

An Agent makes decisions for one or more Actors. The Controller provides agents with an actor to control and a set of possible actions it could take. The Agent can be thought of as a 'filter' for actions, extracting the single action that should take place during an actor's turn.


Method Summary
 Action choose(A actor, Set<Action> options)
          Select an action from the available options.
 

Method Detail

choose

Action choose(A actor,
              Set<Action> options)
Select an action from the available options.

Parameters:
actor - the Actor for whom a decision is being made.
options - the available Actions for the Actor.
Returns:
the Action this Actor will take.