org.jage.action.preparators
Interface IActionPreparator

All Known Implementing Classes:
ActionPreparatorChain, MultipleActionPreparator, SingleActionPreparator

public interface IActionPreparator

A factory strategy being used by an ActionDrivenAgent. Given a set of properties, reflecting the calling agent state, and a queryable interface, reflecting the calling agent's environment, it prepares an Action, to be executed by the agent.

This Action, which may be a simple or a complex one, encapsulates the actual behavior of the Agent.

Author:
AGH AgE Team

Method Summary
 Action prepareAction(IPropertiesSet state, IAgentEnvironment environment)
          Returns the action to be executed, given the state and environment of an agent.
 

Method Detail

prepareAction

Action prepareAction(IPropertiesSet state,
                     IAgentEnvironment environment)
Returns the action to be executed, given the state and environment of an agent.

Parameters:
state - A set of properties, reflecting an agent's state.
environment - An agent's environment.
Returns:
The action to be executed.


Copyright © 2006-2011 AGH University of Science and Technology. All Rights Reserved.