|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.framework.AgentImpl
public class AgentImpl
Basic Agent Implementation.
| 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 |
|---|
public AgentImpl(TaskManager tm)
tm - TaskManager| Method Detail |
|---|
public void init()
InitializableImplInitializableImpl.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.
init in interface Initializableinit in class InitializableImplpublic TaskManager getTaskManager()
Agent
getTaskManager in interface AgentTaskManager in charge of all tasks.public void decayModule(long ticks)
decayModule in interface FrameworkModuleticks - number of ticks to decay.FrameworkModule.decayModule(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||