|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 Initializable
init
in class InitializableImpl
public 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 setDefaultCodeletType(java.lang.String type)
CodeletManagerModule
setDefaultCodeletType
in interface CodeletManagerModule
type
- type name of codelet in the ElementFactory
ElementFactory
public void receiveBroadcast(Coalition coalition)
BroadcastListener
Coalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast
in interface BroadcastListener
coalition
- the Coalition
that won the most recent competition for consciousnesspublic AttentionCodelet getDefaultCodelet(java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModule
Codelet
of the default type of the Manager
getDefaultCodelet
in interface CodeletManagerModule
params
- Optional parameters or null
Codelet
public AttentionCodelet getDefaultCodelet()
CodeletManagerModule
Codelet
of the default type of the Manager
getDefaultCodelet
in interface CodeletManagerModule
Codelet
public AttentionCodelet getCodelet(java.lang.String type)
CodeletManagerModule
Codelet
of the specified type or null if this type is
not supported.
getCodelet
in interface CodeletManagerModule
type
- Codelet type
ElementFactory
public AttentionCodelet getCodelet(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> params)
CodeletManagerModule
Codelet
of the specified type or null if this type is
not supported.
getCodelet
in interface CodeletManagerModule
type
- Codelet typeparams
- Optional parameters or null
public void addCodelet(Codelet codelet)
CodeletManagerModule
Codelet
to this module to be run.
addCodelet
in interface CodeletManagerModule
codelet
- Codelet to be added to runpublic void receivePreafference(NodeStructure addSet, NodeStructure deleteSet)
PreafferenceListener
receivePreafference
in interface PreafferenceListener
addSet
- expected additions in future perceptsdeleteSet
- expected deletions in future perceptspublic void learn(Coalition winningCoalition)
AttentionCodelet
that created the currentCoalition
learn
in interface BroadcastListener
winningCoalition
- current Coalition
winning competition for consciousnesspublic 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 decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |