|
||||||||||
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.sensorymotormemory.BasicSensoryMotorMemory
public class BasicSensoryMotorMemory
Default implementation of a Map-based SensoryMotorMemory
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
BasicSensoryMotorMemory()
Default constructor |
Method Summary | |
---|---|
void |
addActionAlgorithm(java.lang.Number actionId,
java.lang.Object action)
Adds an Algorithm to this SensoryMotorMemory |
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
addSensoryMotorMemoryListener(SensoryMotorMemoryListener l)
Any non-environment communication should use listeners. |
void |
decayModule(long ticks)
Decay only this Module. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
void |
init()
Will set parameters with the following names: smm.processActionTaskTicks delay (in ticks) on the processing of an Action receive from ActionSelection |
void |
receiveAction(Action action)
Listener must receive actions. |
void |
receiveSensoryMemoryContent(java.lang.Object content)
This method is used to receive information from sensory memory. |
void |
sendActuatorCommand(java.lang.Object command)
Executes specified action algorithm |
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, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule, toString |
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
---|
containsParameter, getParam, getParameters, 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, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
containsParameter, getParam, getParameters, init |
Constructor Detail |
---|
public BasicSensoryMotorMemory()
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class InitializableImpl
Initializable
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void addSensoryMotorMemoryListener(SensoryMotorMemoryListener l)
SensoryMotorMemory
addSensoryMotorMemoryListener
in interface SensoryMotorMemory
l
- SensoryMotorMemoryListenerpublic void setAssociatedModule(FrameworkModule module, java.lang.String moduleUsage)
FullyInitializable
setAssociatedModule
in interface FullyInitializable
setAssociatedModule
in class FrameworkModuleImpl
module
- the module to be associated.moduleUsage
- how module will be usedModuleUsage
public void addActionAlgorithm(java.lang.Number actionId, java.lang.Object action)
SensoryMotorMemory
actionId
- Id of Action
which is implemented by the algorithmaction
- an algorithmpublic void receiveAction(Action action)
ActionSelectionListener
receiveAction
in interface ActionSelectionListener
action
- - Id of the action stored in sensory motor memorypublic void sendActuatorCommand(java.lang.Object command)
SensoryMotorMemory
sendActuatorCommand
in interface SensoryMotorMemory
command
- algorithm to execute in the agent's actuators or directly in the environment.public void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.public java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- parameters specifying what content will be returned
public void receiveSensoryMemoryContent(java.lang.Object content)
SensoryMemoryListener
receiveSensoryMemoryContent
in interface SensoryMemoryListener
content
- an Object containing SensoryMemory
content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |