|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.sensorymemory.SensoryMemoryImpl
public abstract class SensoryMemoryImpl
Default abstract (i.e. must be overridden to be used) 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 DetectionAlgorithm
s via method SensoryMemory.getSensoryContent(String, Map)
and it may transmit content to
SensoryMotorMemory
.
Field Summary | |
---|---|
protected Environment |
environment
The Environment associated with this module. |
protected java.util.List<SensoryMemoryListener> |
sensoryMemoryListeners
The SensoryMemoryListener references associated with this module. |
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
SensoryMemoryImpl()
Default Constructor. |
Method Summary | |
---|---|
void |
addListener(ModuleListener l)
Override this method to add a listener to the module |
void |
addSensoryMemoryListener(SensoryMemoryListener l)
Adds a listener to this memory. |
abstract void |
decayModule(long ticks)
Decay only this Module. |
abstract java.lang.Object |
getSensoryContent(java.lang.String modality,
java.util.Map<java.lang.String,java.lang.Object> params)
Returns content from this SensoryMemory. |
abstract void |
runSensors()
Runs all the sensors associated with this memory. |
void |
setAssociatedModule(FrameworkModule m,
java.lang.String usage)
Sets an associated FrameworkModule. |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, 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 |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
containsParameter, getParam, getParameters, init, init |
Field Detail |
---|
protected java.util.List<SensoryMemoryListener> sensoryMemoryListeners
SensoryMemoryListener
references associated with this module.
protected Environment environment
Environment
associated with this module.
Constructor Detail |
---|
public SensoryMemoryImpl()
Method Detail |
---|
public void addListener(ModuleListener l)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
l
- - listener of this FrameworkModulepublic void addSensoryMemoryListener(SensoryMemoryListener l)
SensoryMemory
addSensoryMemoryListener
in interface SensoryMemory
l
- the listener added to this memorypublic void setAssociatedModule(FrameworkModule m, java.lang.String usage)
FullyInitializable
setAssociatedModule
in interface FullyInitializable
setAssociatedModule
in class FrameworkModuleImpl
m
- the module to be associated.usage
- how module will be usedModuleUsage
public abstract void runSensors()
SensoryMemory
runSensors
in interface SensoryMemory
public abstract java.lang.Object getSensoryContent(java.lang.String modality, java.util.Map<java.lang.String,java.lang.Object> params)
SensoryMemory
getSensoryContent
in interface SensoryMemory
modality
- user may optionally use this parameter to specify modality.params
- optional parameters
public abstract 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 |