edu.memphis.ccrg.lida.framework
Class AgentImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
      extended by edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
          extended by edu.memphis.ccrg.lida.framework.AgentImpl
All Implemented Interfaces:
Agent, FrameworkModule, FullyInitializable, Initializable

public class AgentImpl
extends FrameworkModuleImpl
implements Agent

Basic Agent Implementation.

Author:
Javier Snaider

Field Summary
 
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
taskSpawner
 
Constructor Summary
AgentImpl(TaskManager tm)
           
 
Method Summary
 void decayModule(long ticks)
          Should do nothing, submodules' decayModule method is called in FrameworkModuleImpl#taskManagerDecayModule.
 TaskManager getTaskManager()
          Returns the Task Manager
 void init()
          This is a convenience method for custom initialization.
 
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString
 
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
containsParameter, getParam, getParameters, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable
setAssociatedModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init
 

Constructor Detail

AgentImpl

public AgentImpl(TaskManager tm)
Parameters:
tm - TaskManager
Method Detail

init

public void init()
Description copied from class: InitializableImpl
This is a convenience method for custom initialization. It is called from InitializableImpl.init(Map). Subclasses can overwrite this method and call InitializableImpl.getParam(String, Object) to access parameters by name. If this method is overridden, the init of the superclass must be called first.

Specified by:
init in interface Initializable
Overrides:
init in class InitializableImpl

getTaskManager

public TaskManager getTaskManager()
Description copied from interface: Agent
Returns the Task Manager

Specified by:
getTaskManager in interface Agent
Returns:
TaskManager in charge of all tasks.

decayModule

public void decayModule(long ticks)
Should do nothing, submodules' decayModule method is called in FrameworkModuleImpl#taskManagerDecayModule.

Specified by:
decayModule in interface FrameworkModule
Parameters:
ticks - number of ticks to decay.
See Also:
FrameworkModule.decayModule(long)