|
||||||||||
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.proceduralmemory.ProceduralMemoryImpl
public class ProceduralMemoryImpl
Default implementation of ProceduralMemory
. Indexes scheme by context
elements for quick access.
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
ProceduralMemoryImpl()
Default constructor |
Method Summary | |
---|---|
void |
activateSchemes(NodeStructure broadcast)
Using the Broadcast content, activate the relevant schemes of procedural memory |
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
addScheme(Scheme scheme)
Adds specified scheme to this ProceduralMemory . |
void |
addSchemes(java.util.Collection<Scheme> schemes)
Adds specified schemes to this procedural memory. |
boolean |
containsScheme(Scheme s)
Returns whether this procedural memory contains specified scheme. |
void |
createInstantiation(Scheme s)
Instantiates specified scheme. |
void |
decayModule(long ticks)
Decay only this Module. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
SchemeActivationStrategy |
getSchemeActivationStrategy()
Returns the SchemeActivationStrategy . |
int |
getSchemeCount()
Returns a count of the schemes |
void |
init()
This module can accept parameters for the decay and excite strategies for behaviors instantiated in this module. |
void |
learn(BroadcastContent content)
This is a placeholder method to remind implementing classes that they should implement learning. |
void |
receiveBroadcast(BroadcastContent bc)
This method should return as possible in order to not delay the rest of the broadcasting. |
void |
removeScheme(Scheme scheme)
Removes specified Scheme . |
void |
setSchemeActivationStrategy(SchemeActivationStrategy strategy)
Sets the SchemeActivationStrategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, 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.FullyInitializable |
---|
setAssociatedModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Constructor Detail |
---|
public ProceduralMemoryImpl()
Method Detail |
---|
public void init()
SchemeActivationStrategy
in the ElementFactory
proceduralMemory.behaviorDecayStrategy - name (a String) of the Strategy
in the ElementFactory
Strategy
in the ElementFactory
init
in interface Initializable
init
in class FrameworkModuleImpl
FrameworkModuleImpl.init()
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void setSchemeActivationStrategy(SchemeActivationStrategy strategy)
ProceduralMemory
SchemeActivationStrategy
setSchemeActivationStrategy
in interface ProceduralMemory
strategy
- how schemes will be activated based on the broadcast.public SchemeActivationStrategy getSchemeActivationStrategy()
ProceduralMemory
SchemeActivationStrategy
.
getSchemeActivationStrategy
in interface ProceduralMemory
SchemeActivationStrategy
used to activate Scheme
spublic void addSchemes(java.util.Collection<Scheme> schemes)
ProceduralMemory
addSchemes
in interface ProceduralMemory
schemes
- set of Schemespublic void addScheme(Scheme scheme)
ProceduralMemory
ProceduralMemory
.
addScheme
in interface ProceduralMemory
scheme
- Schemepublic void activateSchemes(NodeStructure broadcast)
ProceduralMemory
activateSchemes
in interface ProceduralMemory
broadcast
- conscious contentspublic void receiveBroadcast(BroadcastContent bc)
BroadcastListener
receiveBroadcast
in interface BroadcastListener
bc
- the Content of the Broadcastpublic void learn(BroadcastContent content)
BroadcastListener
GlobalWorkspace
but should be managed by the receiving module.
learn
in interface BroadcastListener
content
- contentpublic void createInstantiation(Scheme s)
ProceduralMemory
createInstantiation
in interface ProceduralMemory
s
- a scheme over thresholdpublic boolean containsScheme(Scheme s)
ProceduralMemory
containsScheme
in interface ProceduralMemory
s
- a Scheme
public int getSchemeCount()
ProceduralMemory
getSchemeCount
in interface ProceduralMemory
public void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.public void removeScheme(Scheme scheme)
ProceduralMemory
Scheme
.
removeScheme
in interface ProceduralMemory
scheme
- scheme to be removed.public java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- - specifies what content will be returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |