edu.memphis.ccrg.lida.proceduralmemory
Class BasicSchemeActivationStrategy

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.strategies.StrategyImpl
      extended by edu.memphis.ccrg.lida.proceduralmemory.BasicSchemeActivationStrategy
All Implemented Interfaces:
Initializable, Strategy, SchemeActivationStrategy, java.io.Serializable

public class BasicSchemeActivationStrategy
extends StrategyImpl
implements SchemeActivationStrategy

A basic algorithm to activate Schemes given a NodeStructure

Author:
Ryan J. McCall
See Also:
Serialized Form

Constructor Summary
BasicSchemeActivationStrategy()
          Default constructor
 
Method Summary
 void activateSchemesWithBroadcast(NodeStructure broadcast, java.lang.Object... params)
          params[0] must contain Map> with all the Schemes of ProceduralMemory
 void init()
          This is a convenience method to initialize this Object.
 void setProceduralMemory(ProceduralMemory pm)
          Sets associated module ProceduralMemory
 void setSchemeSelectionThreshold(double threshold)
          Sets amount of activation a Scheme must have for instantiation
 
Methods inherited from class edu.memphis.ccrg.lida.framework.strategies.StrategyImpl
getParam, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
getParam, init
 

Constructor Detail

BasicSchemeActivationStrategy

public BasicSchemeActivationStrategy()
Default constructor

Method Detail

init

public void init()
Description copied from interface: Initializable
This is a convenience method to initialize this Object. It is called from init(Map parameters). Subclasses can overwrite this method in order to initialize this Object. But make sure to call super.init(); at the beginning of the implementation of this method.

Specified by:
init in interface Initializable
Overrides:
init in class StrategyImpl

activateSchemesWithBroadcast

public void activateSchemesWithBroadcast(NodeStructure broadcast,
                                         java.lang.Object... params)
params[0] must contain Map> with all the Schemes of ProceduralMemory

Specified by:
activateSchemesWithBroadcast in interface SchemeActivationStrategy
Parameters:
broadcast - NodeStructure
params - optional parameters
See Also:
SchemeActivationStrategy.activateSchemesWithBroadcast(edu.memphis.ccrg.lida.framework.shared.NodeStructure, java.lang.Object[])

setProceduralMemory

public void setProceduralMemory(ProceduralMemory pm)
Description copied from interface: SchemeActivationStrategy
Sets associated module ProceduralMemory

Specified by:
setProceduralMemory in interface SchemeActivationStrategy
Parameters:
pm - the ProceduralMemory to associate

setSchemeSelectionThreshold

public void setSchemeSelectionThreshold(double threshold)
Description copied from interface: SchemeActivationStrategy
Sets amount of activation a Scheme must have for instantiation

Specified by:
setSchemeSelectionThreshold in interface SchemeActivationStrategy
Parameters:
threshold - threshold