|
||||||||||
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.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 sbcModule.codeletActivation sbcModule.codeletRemovalThreshold |
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. |
java.lang.String |
toString()
|
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
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 |
---|
getParam, init |
Constructor Detail |
---|
public StructureBuildingCodeletModule()
StructureBuildingCodelet
for the module.
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class FrameworkModuleImpl
FrameworkModuleImpl.init()
public void setDefaultCodeletType(java.lang.String type)
CodeletManagerModule
setDefaultCodeletType
in interface CodeletManagerModule
type
- type name of codelet in the ElementFactory
ElementFactory
public void setAssociatedModule(FrameworkModule module, java.lang.String moduleUsage)
FullyInitializable
setAssociatedModule
in interface FullyInitializable
setAssociatedModule
in class FrameworkModuleImpl
module
- the module to be associated.moduleUsage
- how module will be used @see ModuleUsagepublic StructureBuildingCodelet getDefaultCodelet()
CodeletManagerModule
Codelet
of the default type of the Manager
getDefaultCodelet
in interface CodeletManagerModule
Codelet
public StructureBuildingCodelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModule
Codelet
of the default type of the Manager
getDefaultCodelet
in interface CodeletManagerModule
params
- Optional parameters or null
Codelet
public StructureBuildingCodelet getCodelet(java.lang.String codeletType)
CodeletManagerModule
Codelet
of the specified type or null if this type is
not supported.
getCodelet
in interface CodeletManagerModule
codeletType
- Codelet type
ElementFactory
public StructureBuildingCodelet getCodelet(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModule
Codelet
of the specified type or null if this type is
not supported.
getCodelet
in interface CodeletManagerModule
type
- Codelet typeparams
- Optional parameters or null
public void addCodelet(Codelet cod)
CodeletManagerModule
Codelet
to this module to be run.
addCodelet
in interface CodeletManagerModule
cod
- Codelet to be added to runpublic java.lang.String toString()
toString
in class FrameworkModuleImpl
public java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- - specifies what content will be returned.
public void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |