com.agentfactory.logic.agent
Class Module

java.lang.Object
  extended by 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.


Field Summary
protected  MentalAgent agent
          A reference to the parent agent.
 
Constructor Summary
Module()
           
 
Method Summary
 void destroy()
           
 void fromConstructString(java.lang.String constructString)
           
 java.lang.String getName()
           
 void init()
          Factory Style constructor
 void setAgent(MentalAgent agent)
          Set the agent.
 void setName(java.lang.String name)
           
 java.lang.String toConstructString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

protected MentalAgent agent
A reference to the parent agent.

Constructor Detail

Module

public Module()
Method Detail

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()