|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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()
Implementations should only perform initialization of variables or objects that depend on parameters in the parameter map specified in FrameworkModuleImpl.init(Map) . |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString |
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 |
---|
getParam, init |
Constructor Detail |
---|
public AgentImpl(TaskManager tm)
tm
- TaskManager
Method Detail |
---|
public void init()
FrameworkModuleImpl
FrameworkModuleImpl.init(Map)
.
Furthermore they should not try to access modules added via FrameworkModuleImpl.setAssociatedModule(FrameworkModule, String)
as this method will not have run yet at the time this method is called.
init
in interface Initializable
init
in class FrameworkModuleImpl
public TaskManager getTaskManager()
Agent
getTaskManager
in interface Agent
TaskManager
in charge of all tasks.public void decayModule(long ticks)
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.FrameworkModule.decayModule(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |