org.jage.agent
Class ActionDrivenAgent

java.lang.Object
  extended by org.jage.property.AbstractPropertyContainer
      extended by org.jage.property.ClassPropertyContainer
          extended by org.jage.agent.AbstractAgent
              extended by org.jage.agent.SimpleAgent
                  extended by org.jage.agent.ActionDrivenAgent
All Implemented Interfaces:
Serializable, IAgent, ISimpleAgent, IChangesNotifier, IStatefulComponent, IComponentInstanceProviderAware, IPropertyContainer

public class ActionDrivenAgent
extends SimpleAgent

This agent implementation relies on a IActionPreparator to provide its actual behavior.

Given the agent's state and environment, the IActionPreparator prepares an appropriate action, which is then run by the agent.

Author:
AGH AgE Team
See Also:
Serialized Form

Nested Class Summary
static class ActionDrivenAgent.Properties
          ActionDrivenAgent properties.
 
Field Summary
 
Fields inherited from class org.jage.agent.AbstractAgent
address, instanceProvider, nameInitializer
 
Fields inherited from class org.jage.property.AbstractPropertyContainer
argumentsResolver, changesNotifierMonitors, pathParser, properties
 
Constructor Summary
ActionDrivenAgent()
           
 
Method Summary
 void step()
          The main method of the agent.
 
Methods inherited from class org.jage.agent.SimpleAgent
createAddNewAgentAction, doAction, doDie, doMove, getAgentEnvironment, sendMessage, setAgentEnvironment
 
Methods inherited from class org.jage.agent.AbstractAgent
deliverMessage, equals, finish, getAddress, getParentAddress, getProperty, hasAgentEnvironment, hashCode, init, queryEnvironment, queryParentEnvironment, receiveMessage, receiveMessage, setAddress, setInstanceProvider, toString
 
Methods inherited from class org.jage.property.ClassPropertyContainer
addFunction, addPropertyMonitor, addPropertyMonitor, attachMonitorsToProperties, getMetaProperties, getProperties, getPropertiesFactory, notifyMonitorsAboutDeletion, notifyMonitorsForChangedProperties, notifyMonitorsForChangedProperty, objectDeleted, removeFunction, removePropertyMonitor
 
Methods inherited from class org.jage.property.AbstractPropertyContainer
addMonitor, getFunctionArgumentsResolver, notifyChangeNotiferMonitors, removeMonitor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jage.agent.IAgent
deliverMessage, getAddress
 
Methods inherited from interface org.jage.property.IPropertyContainer
addFunction, addPropertyMonitor, addPropertyMonitor, getMetaProperties, getProperties, getProperty, objectDeleted, removeFunction, removePropertyMonitor
 
Methods inherited from interface org.jage.monitor.IChangesNotifier
addMonitor, removeMonitor
 
Methods inherited from interface org.jage.platform.component.IStatefulComponent
finish, init
 

Constructor Detail

ActionDrivenAgent

public ActionDrivenAgent()
Method Detail

step

public void step()
Description copied from interface: ISimpleAgent
The main method of the agent. Here the agent does all his work.

Specified by:
step in interface ISimpleAgent
Specified by:
step in class SimpleAgent


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