edu.memphis.ccrg.lida.workspace.workspacebuffers
Class WorkspaceBufferImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
      extended by edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
          extended by 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

Field Summary
 
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
taskSpawner
 
Constructor Summary
WorkspaceBufferImpl()
          Default constructor
 
Method Summary
 void addBufferContent(WorkspaceContent content)
          Adds specified content to this workspace buffer.
 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)
          Intended to be called from the GUI.
 
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 edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
containsParameter, getParam, getParameters, init, 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.FullyInitializable
setAssociatedModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 

Constructor Detail

WorkspaceBufferImpl

public WorkspaceBufferImpl()
Default constructor

Method Detail

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.