|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FrameworkModule
Interface for the modules of an agent.
| Method Summary | |
|---|---|
void |
addListener(ModuleListener listener)
Generic way to add various kinds of listeners. |
void |
addSubModule(FrameworkModule lm)
Adds submodule as a component of this FrameworkModule. |
boolean |
containsSubmodule(ModuleName name)
Returns whether this FrameworkModule contains a submodule with
specified ModuleName. |
boolean |
containsSubmodule(java.lang.String name)
Returns whether this FrameworkModule contains a submodule with
specified name. |
void |
decayModule(long ticks)
Decay only this Module. |
TaskSpawner |
getAssistingTaskSpawner()
Returns the TaskSpawner which this FrameworkModule uses to spawn tasks. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Returns module content specified by params. |
ModuleName |
getModuleName()
Gets moduleName. |
FrameworkModule |
getSubmodule(ModuleName name)
Gets specified submodule subModule. |
FrameworkModule |
getSubmodule(java.lang.String name)
Gets specified submodule. |
java.util.Map<ModuleName,FrameworkModule> |
getSubmodules()
Convenience method to get submodules |
void |
setAssistingTaskSpawner(TaskSpawner ts)
Specify the TaskSpawner which this FrameworkModule will use to spawn tasks. |
void |
setModuleName(ModuleName moduleName)
Sets ModuleName. |
void |
taskManagerDecayModule(long ticks)
Decay this module and all its submodules. |
| 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, init |
| Method Detail |
|---|
ModuleName getModuleName()
ModuleName of this FrameworkModulevoid setModuleName(ModuleName moduleName)
moduleName - ModuleName of this FrameworkModuleboolean containsSubmodule(ModuleName name)
FrameworkModule contains a submodule with
specified ModuleName.
name - ModuleName of submodule
FrameworkModule with specified ModuleName
in this FrameworkModuleboolean containsSubmodule(java.lang.String name)
FrameworkModule contains a submodule with
specified name.
name - ModuleName of submodule
FrameworkModule with specified name
in this FrameworkModuleFrameworkModule getSubmodule(ModuleName name)
name - name of the desired submodule.
FrameworkModule getSubmodule(java.lang.String name)
name - name of the desired submodule.
void addSubModule(FrameworkModule lm)
lm - submodule to addjava.lang.Object getModuleContent(java.lang.Object... params)
params - parameters specifying what content will be returned
void taskManagerDecayModule(long ticks)
ticks - number of ticks to decay.void decayModule(long ticks)
ticks - number of ticks to decay.void addListener(ModuleListener listener)
listener - - listener of this FrameworkModulevoid setAssistingTaskSpawner(TaskSpawner ts)
TaskSpawner which this FrameworkModule will use to spawn tasks.
ts - the TaskSpawnerTaskSpawner getAssistingTaskSpawner()
TaskSpawner which this FrameworkModule uses to spawn tasks.
java.util.Map<ModuleName,FrameworkModule> getSubmodules()
ModuleName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||