|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.actionselection.BasicActionSelection
public class BasicActionSelection
Rudimentary action selection that selects the behavior with the highest activation.
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
BasicActionSelection()
Default constructor |
Method Summary | |
---|---|
void |
addActionSelectionListener(ActionSelectionListener listener)
Those classes that should be receiving selected actions from Action Selection |
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
addPreafferenceListener(PreafferenceListener listener)
|
void |
decayModule(long ticks)
Decay only this Module. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
void |
init()
Will set parameters with the following names: actionSelection.refractoryperiodTicks actionSelection.candidateThreshold actionSelection.removalThreshold actionSelection.backgroundTaskTicksPerRun actionSelection.behaviorDecayStrategy actionSelection.thresholdDecayRate |
void |
learn(BroadcastContent content)
This is a placeholder method to remind implementing classes that they should implement learning. |
void |
receiveBehavior(Behavior b)
Receive a Behavior |
void |
receiveBroadcast(BroadcastContent bc)
This method should return as possible in order to not delay the rest of the broadcasting. |
Action |
selectAction()
Choose a single action among those activated and whose context are satisfied to execute |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString |
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 |
---|
getParam, init |
Constructor Detail |
---|
public BasicActionSelection()
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class FrameworkModuleImpl
FrameworkModuleImpl.init()
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void addActionSelectionListener(ActionSelectionListener listener)
ActionSelection
addActionSelectionListener
in interface ActionSelection
listener
- listener of this action selectionpublic void receiveBehavior(Behavior b)
ProceduralMemoryListener
Behavior
receiveBehavior
in interface ProceduralMemoryListener
b
- - a stream, a partial order, of behaviorspublic Action selectAction()
ActionSelection
selectAction
in interface ActionSelection
Action
or null if no action was selected.public java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- - specifies what content will be returned.
public void addPreafferenceListener(PreafferenceListener listener)
addPreafferenceListener
in interface ActionSelection
listener
- preafference listeners of this action selectionpublic void learn(BroadcastContent content)
BroadcastListener
GlobalWorkspace
but should be managed by the receiving module.
learn
in interface BroadcastListener
content
- contentpublic void receiveBroadcast(BroadcastContent bc)
BroadcastListener
receiveBroadcast
in interface BroadcastListener
bc
- the Content of the Broadcastpublic void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |