edu.memphis.ccrg.lida.actionselection
Interface ActionSelection

All Superinterfaces:
FrameworkModule, FullyInitializable, Initializable
All Known Implementing Classes:
BasicActionSelection, BehaviorNetwork

public interface ActionSelection
extends FrameworkModule

Specification for the action selection module of LIDA.

Author:
Ryan J. McCall

Method Summary
 void addActionSelectionListener(ActionSelectionListener l)
          Adds specified ActionSelectionListener.
 void addPreafferenceListener(PreafferenceListener l)
          Adds specified PreafferenceListener
 java.util.Collection<Behavior> getBehaviors()
          Returns a view of the behaviors currently in ActionSelection
 Behavior selectBehavior(java.util.Collection<Behavior> behaviors, double candidateThreshold)
          Selects a behavior (containing an action) for execution.
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule
addListener, addSubModule, containsSubmodule, containsSubmodule, decayModule, getAssistingTaskSpawner, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable
setAssociatedModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 

Method Detail

addActionSelectionListener

void addActionSelectionListener(ActionSelectionListener l)
Adds specified ActionSelectionListener.

Parameters:
l - a module that receives selected actions from ActionSelection

addPreafferenceListener

void addPreafferenceListener(PreafferenceListener l)
Adds specified PreafferenceListener

Parameters:
l - a module that receives preafference from ActionSelection

selectBehavior

Behavior selectBehavior(java.util.Collection<Behavior> behaviors,
                        double candidateThreshold)
Selects a behavior (containing an action) for execution.

Parameters:
behaviors - Collection of behaviors currently available in the module
candidateThreshold - threshold for a behavior to be a candidate
Returns:
winning Behavior or null if none was chosen

getBehaviors

java.util.Collection<Behavior> getBehaviors()
Returns a view of the behaviors currently in ActionSelection

Returns:
a Collection of Behavior objects