|
||||||||||
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.sensorymemory.SensoryMemoryImpl
edu.memphis.ccrg.lida.sensorymemory.SensoryMemoryImplTest.MockSensoryMemoryImpl
class SensoryMemoryImplTest.MockSensoryMemoryImpl
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.sensorymemory.SensoryMemoryImpl |
---|
environment, listeners |
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
SensoryMemoryImplTest.MockSensoryMemoryImpl()
|
Method Summary | |
---|---|
void |
decayModule(long ticks)
Decay only this Module. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Returns module content specified by params. |
java.lang.Object |
getSensoryContent(java.lang.String modality,
java.util.Map<java.lang.String,java.lang.Object> params)
Returns content from this SensoryMemory. |
void |
init()
Implementations should only perform initialization of variables or objects that depend on parameters in the parameter map specified in FrameworkModuleImpl.init(Map) . |
void |
runSensors()
Runs all the sensors associated with this memory. |
Methods inherited from class edu.memphis.ccrg.lida.sensorymemory.SensoryMemoryImpl |
---|
addListener, addSensoryMemoryListener, setAssociatedModule |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, 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.framework.FrameworkModule |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Constructor Detail |
---|
SensoryMemoryImplTest.MockSensoryMemoryImpl()
Method Detail |
---|
public void runSensors()
SensoryMemory
public java.lang.Object getSensoryContent(java.lang.String modality, java.util.Map<java.lang.String,java.lang.Object> params)
SensoryMemory
modality
- user may optionally use this parameter to specify modality.params
- optional parameters
public void decayModule(long ticks)
FrameworkModule
ticks
- number of ticks to decay.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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |