edu.memphis.ccrg.lida.framework.tasks
Interface Codelet

All Superinterfaces:
Activatible, java.util.concurrent.Callable<FrameworkTask>, FrameworkTask, FullyInitializable, Initializable, Learnable
All Known Subinterfaces:
AttentionCodelet, StructureBuildingCodelet
All Known Implementing Classes:
AttentionCodeletImpl, BasicAttentionCodelet, BasicStructureBuildingCodelet, CodeletImpl, DefaultAttentionCodelet, NeighborhoodAttentionCodelet, StructureBuildingCodeletImpl

public interface Codelet
extends FrameworkTask

A task that represents a demon-like processor.

Author:
Javier Snaider, Ryan J. McCall

Field Summary
 
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable
DEFAULT_BASE_LEVEL_ACTIVATION, DEFAULT_LEARNABLE_REMOVAL_THRESHOLD
 
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION
 
Method Summary
 boolean bufferContainsSoughtContent(WorkspaceBuffer buffer)
          Returns true if specified WorkspaceBuffer contains this codelet's sought content.
 NodeStructure getSoughtContent()
           
 NodeStructure retrieveWorkspaceContent(WorkspaceBuffer buffer)
          Returns sought content and related content from specified WorkspaceBuffer.
 void setSoughtContent(NodeStructure content)
           
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.tasks.FrameworkTask
cancel, 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
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable
setAssociatedModule
 

Method Detail

getSoughtContent

NodeStructure getSoughtContent()
Returns:
the sought content

setSoughtContent

void setSoughtContent(NodeStructure content)
Parameters:
content - the content the codelet looks for.

bufferContainsSoughtContent

boolean bufferContainsSoughtContent(WorkspaceBuffer buffer)
Returns true if specified WorkspaceBuffer contains this codelet's sought content.

Parameters:
buffer - the WorkspaceBuffer to be checked for content
Returns:
true, if successful

retrieveWorkspaceContent

NodeStructure retrieveWorkspaceContent(WorkspaceBuffer buffer)
Returns sought content and related content from specified WorkspaceBuffer.

Parameters:
buffer - the buffer
Returns:
the workspace content