|
||||||||||
| 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.attentioncodelets.AttentionCodeletModule
public class AttentionCodeletModule
FrameworkModule which creates and manages all AttentionCodelet.
| Field Summary |
|---|
| Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
taskSpawner |
| Constructor Summary | |
|---|---|
AttentionCodeletModule()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addCodelet(Codelet codelet)
Adds specified Codelet to this module to be run. |
void |
decayModule(long ticks)
Decay only this Module. |
AttentionCodelet |
getCodelet(java.lang.String type)
Returns a new Codelet of the specified type or null if this type is
not supported. |
AttentionCodelet |
getCodelet(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the specified type or null if this type is
not supported. |
AttentionCodelet |
getDefaultCodelet()
Returns a new Codelet of the default type of the Manager |
AttentionCodelet |
getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a new Codelet of the default type of the Manager |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
void |
init()
Will set parameters with the following names: attentionModule.defaultCodeletType type of attention codelets obtained from this module attentionModule.codeletActivation initial activation of codelets obtained from this module attentionModule.codeletRemovalThreshold initial removal threshold for codelets obtained from this module attentionModule.codeletReinforcement amount of reinforcement codelets' base-level activation receives during learning |
void |
learn(Coalition winningCoalition)
Performs learning based on the AttentionCodelet that created the currentwinning Coalition |
void |
receiveBroadcast(Coalition coalition)
Listener must receive a broadcast of a the winning Coalition
This method should return as possible in order to not delay the rest of the broadcasting. |
void |
receivePreafference(NodeStructure addSet,
NodeStructure deleteSet)
Listener receives preafference. |
void |
setAssociatedModule(FrameworkModule module,
java.lang.String moduleUsage)
Sets an associated FrameworkModule. |
void |
setDefaultCodeletType(java.lang.String type)
Sets default codelet type used by this Manager. |
| Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
addListener, 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 |
|---|
addListener, 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 AttentionCodeletModule()
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class InitializableImpl
public void setAssociatedModule(FrameworkModule module,
java.lang.String moduleUsage)
FullyInitializable
setAssociatedModule in interface FullyInitializablesetAssociatedModule in class FrameworkModuleImplmodule - the module to be associated.moduleUsage - how module will be usedModuleUsagepublic void setDefaultCodeletType(java.lang.String type)
CodeletManagerModule
setDefaultCodeletType in interface CodeletManagerModuletype - type name of codelet in the ElementFactoryElementFactorypublic void receiveBroadcast(Coalition coalition)
BroadcastListenerCoalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast in interface BroadcastListenercoalition - the Coalition that won the most recent competition for consciousnesspublic AttentionCodelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModuleCodelet of the default type of the Manager
getDefaultCodelet in interface CodeletManagerModuleparams - Optional parameters or null
Codeletpublic AttentionCodelet getDefaultCodelet()
CodeletManagerModuleCodelet of the default type of the Manager
getDefaultCodelet in interface CodeletManagerModuleCodeletpublic AttentionCodelet getCodelet(java.lang.String type)
CodeletManagerModuleCodelet of the specified type or null if this type is
not supported.
getCodelet in interface CodeletManagerModuletype - Codelet type
ElementFactory
public AttentionCodelet getCodelet(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModuleCodelet of the specified type or null if this type is
not supported.
getCodelet in interface CodeletManagerModuletype - Codelet typeparams - Optional parameters or null
public void addCodelet(Codelet codelet)
CodeletManagerModuleCodelet to this module to be run.
addCodelet in interface CodeletManagerModulecodelet - Codelet to be added to run
public void receivePreafference(NodeStructure addSet,
NodeStructure deleteSet)
PreafferenceListener
receivePreafference in interface PreafferenceListeneraddSet - expected additions in future perceptsdeleteSet - expected deletions in future perceptspublic void learn(Coalition winningCoalition)
AttentionCodelet that created the currentCoalition
learn in interface BroadcastListenerwinningCoalition - current Coalition winning competition for consciousnesspublic java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent in interface FrameworkModulegetModuleContent in class FrameworkModuleImplparams - parameters specifying what content will be returned
public void decayModule(long ticks)
FrameworkModule
decayModule in interface FrameworkModuleticks - number of ticks to decay.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||