edu.memphis.ccrg.lida.workspace.workspacebuffers
Class WorkspaceBufferImpl
java.lang.Object
edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.workspace.workspacebuffers.WorkspaceBufferImpl
- All Implemented Interfaces:
- FrameworkModule, FullyInitializable, Initializable, WorkspaceBuffer
public class WorkspaceBufferImpl
- extends FrameworkModuleImpl
- implements WorkspaceBuffer
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.
- Author:
- Ryan J. McCall
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
addListener, addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, 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, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
WorkspaceBufferImpl
public WorkspaceBufferImpl()
- Default constructor
addBufferContent
public void addBufferContent(WorkspaceContent content)
- Description copied from interface:
WorkspaceBuffer
- Adds specified content to this workspace buffer.
- Specified by:
addBufferContent
in interface WorkspaceBuffer
- Parameters:
content
- WorkspaceContent
to add
getBufferContent
public WorkspaceContent getBufferContent(java.util.Map<java.lang.String,java.lang.Object> params)
- Description copied from interface:
WorkspaceBuffer
- Gets buffer content based on specified parameters.
- Specified by:
getBufferContent
in interface WorkspaceBuffer
- Parameters:
params
- optional parameters to specify what content is returned
- Returns:
WorkspaceContent
decayModule
public void decayModule(long ticks)
- Description copied from interface:
FrameworkModule
- Decay only this Module.
- Specified by:
decayModule
in interface FrameworkModule
- Parameters:
ticks
- number of ticks to decay.
getModuleContent
public java.lang.Object getModuleContent(java.lang.Object... params)
- Description copied from class:
FrameworkModuleImpl
- Intended to be called from the GUI. Override this method to return
particular module content based on params.
- Specified by:
getModuleContent
in interface FrameworkModule
- Overrides:
getModuleContent
in class FrameworkModuleImpl
- Parameters:
params
- parameters specifying what content will be returned
- Returns:
- Parameter-specified content of this module.