edu.memphis.ccrg.lida.attentioncodelets
Class AttentionCodeletImpl
java.lang.Object
edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl
edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl
edu.memphis.ccrg.lida.framework.tasks.CodeletImpl
edu.memphis.ccrg.lida.attentioncodelets.AttentionCodeletImpl
- All Implemented Interfaces:
- AttentionCodelet, FullyInitializable, Initializable, Activatible, Learnable, RefractoryPeriod, Codelet, FrameworkTask, java.io.Serializable, java.util.concurrent.Callable<FrameworkTask>
- Direct Known Subclasses:
- BasicAttentionCodelet
public abstract class AttentionCodeletImpl
- extends CodeletImpl
- implements AttentionCodelet
Abstract implementation of AttentionCodelet
that checks the CSM for desired
content. If this is found it creates a
Coalition
and adds it to the GlobalWorkspace
.
- Author:
- Ryan J McCall
- See Also:
- Serialized Form
Methods inherited from class edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl |
call, equals, getControllingTaskSpawner, getNextTicksPerRun, getParam, getScheduledTick, getTaskId, getTaskStatus, getTicksPerRun, hashCode, init, setControllingTaskSpawner, setNextTicksPerRun, setScheduledTick, setTaskStatus, setTicksPerRun, stopRunning, toString |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl |
decay, decayBaseLevelActivation, getBaseLevelActivation, getBaseLevelDecayStrategy, getBaseLevelExciteStrategy, getLearnableRemovalThreshold, getTotalActivation, getTotalActivationStrategy, isRemovable, reinforceBaseLevelActivation, setBaseLevelActivation, setBaseLevelDecayStrategy, setBaseLevelExciteStrategy, setBaseLevelRemovalThreshold, setTotalActivationStrategy |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.tasks.FrameworkTask |
getControllingTaskSpawner, getNextTicksPerRun, getScheduledTick, getTaskId, getTaskStatus, getTicksPerRun, setControllingTaskSpawner, setNextTicksPerRun, setScheduledTick, setTaskStatus, setTicksPerRun, stopRunning |
Methods inherited from interface java.util.concurrent.Callable |
call |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable |
decayBaseLevelActivation, getBaseLevelActivation, getBaseLevelDecayStrategy, getBaseLevelExciteStrategy, getLearnableRemovalThreshold, getTotalActivationStrategy, reinforceBaseLevelActivation, setBaseLevelActivation, setBaseLevelDecayStrategy, setBaseLevelExciteStrategy, setBaseLevelRemovalThreshold, setTotalActivationStrategy |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
currentSituationalModel
protected WorkspaceBuffer currentSituationalModel
- Where codelet will look for and retrieve sought content from
globalWorkspace
protected GlobalWorkspace globalWorkspace
- where
Coalition
s will be added
AttentionCodeletImpl
public AttentionCodeletImpl()
- Default constructor
init
public void init()
- Description copied from class:
FrameworkTaskImpl
- This is a convenience method to initialize Tasks. It is called from init(Map parameters).
Subclasses can overwrite this method in order to initialize the FrameworkTask
- Specified by:
init
in interface Initializable
- Overrides:
init
in class FrameworkTaskImpl
setAssociatedModule
public void setAssociatedModule(FrameworkModule module,
java.lang.String usage)
- Description copied from class:
FrameworkTaskImpl
- Subclasses may override this method.
- Specified by:
setAssociatedModule
in interface FullyInitializable
- Overrides:
setAssociatedModule
in class FrameworkTaskImpl
- Parameters:
module
- the module to be associated.usage
- how module will be used @see ModuleUsage
runThisFrameworkTask
protected void runThisFrameworkTask()
- If sought content is found it the CSM, then retrieve it
and create a coalition from it finally adding it to the
GlobalWorkspace
.
- Specified by:
runThisFrameworkTask
in class FrameworkTaskImpl
setRefractoryPeriod
public void setRefractoryPeriod(int ticks)
- Description copied from interface:
RefractoryPeriod
- Sets refractoryPeriod
- Specified by:
setRefractoryPeriod
in interface RefractoryPeriod
- Parameters:
ticks
- length of refractory period in ticks- See Also:
TaskManager
getRefractoryPeriod
public int getRefractoryPeriod()
- Description copied from interface:
RefractoryPeriod
- Gets refractoryPeriod
- Specified by:
getRefractoryPeriod
in interface RefractoryPeriod
- Returns:
- length of refractory period in ticks
- See Also:
TaskManager