|
||||||||||
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.workspaceBuffer.WorkspaceBufferImpl
public class WorkspaceBufferImpl
This class implements module of WorkspaceBuffer. WorkspaceBuffer is a submodule of workspace and
it contains nodeStructures. Also this class maintains activation lower bound of its nodeStructures.
WorkspaceBuffer
implementation. Uses a single NodeStructure for the content.
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
WorkspaceBufferImpl()
Default constructor initializes nodeStructure. |
Method Summary | |
---|---|
void |
addBufferContent(WorkspaceContent content)
Adds specified content to this workspace buffer. |
void |
addListener(ModuleListener listener)
Generic way to add various kinds of listeners. |
void |
decayModule(long ticks)
Decay only this Module. |
WorkspaceContent |
getBufferContent(java.util.Map<java.lang.String,java.lang.Object> params)
Gets buffer content based on specified parameters. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Returns module content specified by params. |
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 |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, 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 WorkspaceBufferImpl()
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 java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModule
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.public void addListener(ModuleListener listener)
FrameworkModule
addListener
in interface FrameworkModule
listener
- - listener of this FrameworkModulepublic void addBufferContent(WorkspaceContent content)
WorkspaceBuffer
addBufferContent
in interface WorkspaceBuffer
content
- WorkspaceContent
to addpublic WorkspaceContent getBufferContent(java.util.Map<java.lang.String,java.lang.Object> params)
WorkspaceBuffer
getBufferContent
in interface WorkspaceBuffer
params
- optional parameters to specify what content is returned
WorkspaceContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |