|
||||||||||
| 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.workspace.structurebuildingcodelets.StructureBuildingCodeletModule
public class StructureBuildingCodeletModule
A module which maintains Codelets of workspace. This module manages Codelets and responds for sending events to framework GUI.
| Field Summary |
|---|
| Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
taskSpawner |
| Constructor Summary | |
|---|---|
StructureBuildingCodeletModule()
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
addCodelet(Codelet cod)
Adds specified Codelet to this module to be run. |
void |
decayModule(long ticks)
Decay only this Module. |
StructureBuildingCodelet |
getCodelet(java.lang.String codeletType)
Returns a new Codelet of the specified type or null if this type is
not supported. |
StructureBuildingCodelet |
getCodelet(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the specified type or null if this type is
not supported. |
StructureBuildingCodelet |
getDefaultCodelet()
Returns a new Codelet of the default type of the Manager |
StructureBuildingCodelet |
getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the default type of the Manager |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
void |
init()
Will set parameters with the following names: sbcModule.defaultCodeletType type of attention codelets obtained from this module sbcModule.codeletActivation initial activation of codelets obtained from this module sbcModule.codeletRemovalThreshold initial removal threshold for codelets obtained from this module |
void |
setAssociatedModule(FrameworkModule module,
java.lang.String moduleUsage)
Sets an associated FrameworkModule. |
void |
setDefaultCodeletType(java.lang.String type)
Sets default codelet type used by this Manager. |
| Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, 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, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
| Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
|---|
containsParameter, getParam, getParameters, init |
| Constructor Detail |
|---|
public StructureBuildingCodeletModule()
StructureBuildingCodelet for the module.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class InitializableImplpublic void setDefaultCodeletType(java.lang.String type)
CodeletManagerModule
setDefaultCodeletType in interface CodeletManagerModuletype - type name of codelet in the ElementFactoryElementFactory
public void setAssociatedModule(FrameworkModule module,
java.lang.String moduleUsage)
FullyInitializable
setAssociatedModule in interface FullyInitializablesetAssociatedModule in class FrameworkModuleImplmodule - the module to be associated.moduleUsage - how module will be usedModuleUsagepublic StructureBuildingCodelet getDefaultCodelet()
CodeletManagerModuleCodelet of the default type of the Manager
getDefaultCodelet in interface CodeletManagerModuleCodeletpublic StructureBuildingCodelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModuleCodelet of the default type of the Manager
getDefaultCodelet in interface CodeletManagerModuleparams - Optional parameters or null
Codeletpublic StructureBuildingCodelet getCodelet(java.lang.String codeletType)
CodeletManagerModuleCodelet of the specified type or null if this type is
not supported.
getCodelet in interface CodeletManagerModulecodeletType - Codelet type
ElementFactory
public StructureBuildingCodelet getCodelet(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModuleCodelet of the specified type or null if this type is
not supported.
getCodelet in interface CodeletManagerModuletype - Codelet typeparams - Optional parameters or null
public void addCodelet(Codelet cod)
CodeletManagerModuleCodelet to this module to be run.
addCodelet in interface CodeletManagerModulecod - Codelet to be added to runpublic java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent in interface FrameworkModulegetModuleContent in class FrameworkModuleImplparams - parameters specifying what content will be returned
public void decayModule(long ticks)
FrameworkModule
decayModule in interface FrameworkModuleticks - number of ticks to decay.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||