|
||||||||||
| 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.MockProceduralMemory
public class MockProceduralMemory
| Field Summary |
|---|
| Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
taskSpawner |
| Constructor Summary | |
|---|---|
MockProceduralMemory()
|
|
| Method Summary | |
|---|---|
void |
activateSchemes(NodeStructure broadcastContent)
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 s)
Adds specified scheme to this ProceduralMemory. |
void |
addSchemes(java.util.Collection<Scheme> schemes)
Adds specified schemes to this procedural memory. |
void |
clearInstantiated()
|
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 |
java.util.Collection<Scheme> |
getTestInstantiated()
|
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 |
removeScheme(Scheme s)
Removes specified Scheme. |
void |
setSchemeActivationStrategy(SchemeActivationStrategy b)
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 MockProceduralMemory()
| Method Detail |
|---|
public void activateSchemes(NodeStructure broadcastContent)
ProceduralMemory
activateSchemes in interface ProceduralMemorybroadcastContent - conscious contentspublic void addScheme(Scheme s)
ProceduralMemoryProceduralMemory.
addScheme in interface ProceduralMemorys - Schemepublic void addSchemes(java.util.Collection<Scheme> schemes)
ProceduralMemory
addSchemes in interface ProceduralMemoryschemes - set of Schemespublic boolean containsScheme(Scheme s)
ProceduralMemory
containsScheme in interface ProceduralMemorys - a Scheme
public SchemeActivationStrategy getSchemeActivationStrategy()
ProceduralMemorySchemeActivationStrategy.
getSchemeActivationStrategy in interface ProceduralMemorySchemeActivationStrategy used to activate Schemespublic int getSchemeCount()
ProceduralMemory
getSchemeCount in interface ProceduralMemorypublic java.util.Collection<Scheme> getTestInstantiated()
public void clearInstantiated()
public void createInstantiation(Scheme s)
ProceduralMemory
createInstantiation in interface ProceduralMemorys - a scheme over thresholdpublic void setSchemeActivationStrategy(SchemeActivationStrategy b)
ProceduralMemorySchemeActivationStrategy
setSchemeActivationStrategy in interface ProceduralMemoryb - how schemes will be activated based on the broadcast.public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener in interface FrameworkModuleaddListener in class FrameworkModuleImpllistener - - listener of this FrameworkModulepublic void decayModule(long ticks)
FrameworkModule
decayModule in interface FrameworkModuleticks - number of ticks to decay.public java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent in interface FrameworkModulegetModuleContent in class FrameworkModuleImplparams - - specifies what content will be returned.
public void init()
FrameworkModuleImplFrameworkModuleImpl.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 Initializableinit in class FrameworkModuleImplpublic void removeScheme(Scheme s)
ProceduralMemoryScheme.
removeScheme in interface ProceduralMemorys - scheme to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||