org.jage.action.preparators
Class SingleActionPreparator
java.lang.Object
org.jage.property.AbstractPropertyContainer
org.jage.property.ClassPropertyContainer
org.jage.strategy.AbstractStrategy
org.jage.action.preparators.SingleActionPreparator
- All Implemented Interfaces:
- IActionPreparator, IChangesNotifier, IPropertyContainer, IStrategy
public class SingleActionPreparator
- extends AbstractStrategy
- implements IActionPreparator
A simple IActionPreparator
that expects a single IActionContext
and build an action upon it.
- Author:
- AGH AgE Team
Methods inherited from class org.jage.property.ClassPropertyContainer |
addFunction, addPropertyMonitor, addPropertyMonitor, attachMonitorsToProperties, getMetaProperties, getProperties, getPropertiesFactory, getProperty, notifyMonitorsAboutDeletion, notifyMonitorsForChangedProperties, notifyMonitorsForChangedProperty, objectDeleted, removeFunction, removePropertyMonitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleActionPreparator
public SingleActionPreparator()
prepareAction
public Action prepareAction(IPropertiesSet state,
IAgentEnvironment environment)
- Description copied from interface:
IActionPreparator
- Returns the action to be executed, given the state and environment of an agent.
- Specified by:
prepareAction
in interface IActionPreparator
- 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.