com.agentfactory.logic.agent
Class Module
java.lang.Object
com.agentfactory.logic.agent.Module
public abstract class Module
- extends java.lang.Object
This is an abstract base class from which all agent modules should be
subclassed. Whenever a module is created for an agent, a reference to
that agent is passed into the module, allowing code to reference the agent.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
protected MentalAgent agent
- A reference to the parent agent.
Module
public Module()
init
public void init()
- Factory Style constructor
setAgent
public void setAgent(MentalAgent agent)
- Set the agent.
toConstructString
public java.lang.String toConstructString()
fromConstructString
public void fromConstructString(java.lang.String constructString)
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
destroy
public void destroy()