edu.memphis.ccrg.lida.pam.tasks
Class AddToPerceptTask

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
      extended by edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl
          extended by edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl
              extended by edu.memphis.ccrg.lida.pam.tasks.AddToPerceptTask
All Implemented Interfaces:
FullyInitializable, Initializable, Activatible, Learnable, FrameworkTask, java.io.Serializable, java.util.concurrent.Callable<FrameworkTask>

public class AddToPerceptTask
extends FrameworkTaskImpl

A task to add a PamNode, PamLink, or NodeStructure to the percept.

Author:
Ryan J McCall
See Also:
AddToPerceptTask is spawned by ExcitationTask, Serialized Form

Field Summary
 
Fields inherited from class edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl
status
 
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
 
Constructor Summary
AddToPerceptTask(java.util.Collection<Node> nodes, PerceptualAssociativeMemory pam)
          Creates a new AddToPerceptTask to add a collection of PamNode
AddToPerceptTask(NodeStructure ns, PerceptualAssociativeMemory pam)
          Creates a new AddToPerceptTask to add a NodeStructure
AddToPerceptTask(PamNode pamNode, PerceptualAssociativeMemory pam)
          Creates a new AddToPerceptTask to add a single PamNode
 
Method Summary
protected  void runThisFrameworkTask()
          While it looks simple, the call to 'addNodeToPercept' takes many step to execute.
 java.lang.String toString()
           
 
Methods inherited from class edu.memphis.ccrg.lida.framework.tasks.FrameworkTaskImpl
call, equals, getControllingTaskSpawner, getNextTicksPerStep, getParam, getScheduledTick, getTaskId, getTaskStatus, getTicksPerStep, hashCode, init, init, setAssociatedModule, setControllingTaskSpawner, setNextTicksPerStep, setScheduledTick, setTaskStatus, setTicksPerStep, stopRunning
 
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 edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

AddToPerceptTask

public AddToPerceptTask(PamNode pamNode,
                        PerceptualAssociativeMemory pam)
Creates a new AddToPerceptTask to add a single PamNode

Parameters:
pamNode - a PamNode
pam - the PerceptualAssociativeMemory

AddToPerceptTask

public AddToPerceptTask(java.util.Collection<Node> nodes,
                        PerceptualAssociativeMemory pam)
Creates a new AddToPerceptTask to add a collection of PamNode

Parameters:
nodes - to be added
pam - PerceptualAssociativeMemory

AddToPerceptTask

public AddToPerceptTask(NodeStructure ns,
                        PerceptualAssociativeMemory pam)
Creates a new AddToPerceptTask to add a NodeStructure

Parameters:
ns - a NodeStructure
pam - the PerceptualAssociativeMemory
Method Detail

runThisFrameworkTask

protected void runThisFrameworkTask()
While it looks simple, the call to 'addNodeToPercept' takes many step to execute. Thus it is justifiable to make this a separate thread

Specified by:
runThisFrameworkTask in class FrameworkTaskImpl

toString

public java.lang.String toString()
Specified by:
toString in class FrameworkTaskImpl