edu.memphis.ccrg.lida.sensorymemory
Class SensoryMemoryImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
      extended by edu.memphis.ccrg.lida.sensorymemory.SensoryMemoryImpl
All Implemented Interfaces:
FrameworkModule, FullyInitializable, Initializable, SensoryMemory

public abstract class SensoryMemoryImpl
extends FrameworkModuleImpl
implements SensoryMemory

Default implementation of the SensoryMemory module. This module should sense the environment, store the sensed data and processing it. It should expect access to its content from DetectionAlgorithms and it should transmit content to SensoryMotorMemory.

Author:
Ryan J. McCall

Field Summary
protected  Environment environment
          The environment associated with this memory.
protected  java.util.List<SensoryMemoryListener> listeners
          The listeners associated with this memory.
 
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
taskSpawner
 
Constructor Summary
SensoryMemoryImpl()
          Default Constructor.
 
Method Summary
 void addListener(ModuleListener listener)
          Override this method to add a listener to the module
 void addSensoryMemoryListener(SensoryMemoryListener l)
          Adds a listener to this memory.
 void setAssociatedModule(FrameworkModule module, java.lang.String moduleUsage)
          Sets an associated FrameworkModule.
 
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, init, setAssistingTaskSpawner, 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.sensorymemory.SensoryMemory
getSensoryContent, runSensors
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule
addSubModule, containsSubmodule, containsSubmodule, decayModule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
getParam, init, init
 

Field Detail

listeners

protected java.util.List<SensoryMemoryListener> listeners
The listeners associated with this memory.


environment

protected Environment environment
The environment associated with this memory.

Constructor Detail

SensoryMemoryImpl

public SensoryMemoryImpl()
Default Constructor.

Method Detail

addListener

public void addListener(ModuleListener listener)
Description copied from class: FrameworkModuleImpl
Override this method to add a listener to the module

Specified by:
addListener in interface FrameworkModule
Overrides:
addListener in class FrameworkModuleImpl
Parameters:
listener - - listener of this FrameworkModule

addSensoryMemoryListener

public void addSensoryMemoryListener(SensoryMemoryListener l)
Description copied from interface: SensoryMemory
Adds a listener to this memory. This listener constantly checks for information being sent from this memory to other modules (Perceptual Associative Memory and Sensory Motor Memory).

Specified by:
addSensoryMemoryListener in interface SensoryMemory
Parameters:
l - the listener added to this memory

setAssociatedModule

public void setAssociatedModule(FrameworkModule module,
                                java.lang.String moduleUsage)
Description copied from interface: FullyInitializable
Sets an associated FrameworkModule.

Specified by:
setAssociatedModule in interface FullyInitializable
Overrides:
setAssociatedModule in class FrameworkModuleImpl
Parameters:
module - the module to be associated.
moduleUsage - how module will be used @see ModuleUsage