|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.actionselection.behaviornetwork.BehaviorNetwork
public class BehaviorNetwork
A Behavior Network implementation of ActionSelection
based on the
ideas of Maes' original. This implementation is integrated into the
framework, operating asynchronously and also taking the conscious broadcast
as input. Maes' called the input "environment".
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
BehaviorNetwork()
Default constructor |
Method Summary | |
---|---|
void |
addActionSelectionListener(ActionSelectionListener l)
Adds specified ActionSelectionListener . |
void |
addListener(ModuleListener l)
Override this method to add a listener to the module |
void |
addPreafferenceListener(PreafferenceListener l)
Adds specified PreafferenceListener |
(package private) void |
attemptActionSelection()
Tries to select one behavior to be executed. |
void |
decayModule(long t)
Decay only this Module. |
java.util.Collection<Behavior> |
getBehaviors()
Returns a view of the behaviors currently in ActionSelection |
(package private) double |
getCandidateThreshold()
Gets candidate threshold. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
void |
init()
This module can initialize the following parameters: actionselection.broadcastExcitationFactor - double, the percentage of the activation that broadcast elements send to behaviors whose context and/or result intersect with said elements actionselection.successorExcitationFactor - double, the percentage of the activation that behaviors receive from their successors actionselection.predecessorExcitationFactor - double, the percentage of activation that behaviors receive from their predecessors actionselection.conflictorExcitationFactor - double, the percent of activation behaviors receive from conflicting behaviors actionselection.contextSatisfactionThreshold - double, amount of activation a context condition must have to be satisfied actionselection.initialCandidateThreshold - double, the initial value for candidate threshold. |
(package private) void |
passActivationAmongBehaviors()
Intended for testing only. |
(package private) void |
passActivationFromSchemes()
Intended for testing only. |
void |
receiveBehavior(Behavior b)
Receive a Behavior |
Behavior |
selectBehavior(java.util.Collection<Behavior> behaviors,
double candidateThreshold)
Selects a behavior (containing an action) for execution. |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString |
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
---|
containsParameter, getParam, getParameters, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, 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 |
Constructor Detail |
---|
public BehaviorNetwork()
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class InitializableImpl
Initializable
public void addListener(ModuleListener l)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
l
- - listener of this FrameworkModulepublic void addActionSelectionListener(ActionSelectionListener l)
ActionSelection
ActionSelectionListener
.
addActionSelectionListener
in interface ActionSelection
l
- a module that receives selected actions from ActionSelection
public void addPreafferenceListener(PreafferenceListener l)
ActionSelection
PreafferenceListener
addPreafferenceListener
in interface ActionSelection
l
- a module that receives preafference from ActionSelection
public void receiveBehavior(Behavior b)
ProceduralMemoryListener
Behavior
receiveBehavior
in interface ProceduralMemoryListener
b
- - a stream, a partial order, of behaviorsvoid passActivationFromSchemes()
void passActivationAmongBehaviors()
void attemptActionSelection()
public Behavior selectBehavior(java.util.Collection<Behavior> behaviors, double candidateThreshold)
selectBehavior
in interface ActionSelection
behaviors
- Collection
of behaviors currently available in the
modulecandidateThreshold
- threshold for a behavior to be a candidate
public void decayModule(long t)
FrameworkModule
decayModule
in interface FrameworkModule
t
- number of ticks to decay.public java.util.Collection<Behavior> getBehaviors()
ActionSelection
ActionSelection
getBehaviors
in interface ActionSelection
Collection
of Behavior
objectspublic java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- parameters specifying what content will be returned
double getCandidateThreshold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |