|
||||||||||
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.workspace.workspacebuffers.BroadcastQueueImpl
public class BroadcastQueueImpl
The BroadcastQueue is the data structure storing the recent contents of
consciousness. It is a submodule of the Workspace. There is a limit on the
queue's capacity and on the amount of activation Linkable
s must have
to remain in the queue.
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
BroadcastQueueImpl()
Default constructor |
Method Summary | |
---|---|
void |
addBufferContent(WorkspaceContent content)
Adds specified content to this workspace buffer. |
void |
decayModule(long ticks)
Decay only this Module. |
WorkspaceContent |
getBufferContent(java.util.Map<java.lang.String,java.lang.Object> params)
Gets buffer content based on specified parameters. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
WorkspaceContent |
getPositionContent(int index)
Returns content of specified position |
void |
init()
Will set parameters with the following names: workspace.broadcastQueueCapacity the number of recent broadcast maintained in this BroadcastQueue |
void |
learn(Coalition coalition)
A place-holder method to remind implementing classes that they should implement learning. |
void |
receiveBroadcast(Coalition c)
Listener must receive a broadcast of a the winning Coalition
This method should return as possible in order to not delay the rest of the broadcasting. |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addListener, 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 |
---|
addListener, 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 BroadcastQueueImpl()
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class InitializableImpl
Initializable
public void receiveBroadcast(Coalition c)
BroadcastListener
Coalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast
in interface BroadcastListener
c
- the Coalition
that won the most recent competition for consciousnesspublic 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
public void addBufferContent(WorkspaceContent content)
WorkspaceBuffer
addBufferContent
in interface WorkspaceBuffer
content
- WorkspaceContent
to addpublic WorkspaceContent getBufferContent(java.util.Map<java.lang.String,java.lang.Object> params)
WorkspaceBuffer
getBufferContent
in interface WorkspaceBuffer
params
- optional parameters to specify what content is returned
WorkspaceContent
public WorkspaceContent getPositionContent(int index)
BroadcastQueue
getPositionContent
in interface BroadcastQueue
index
- position in the queue
WorkspaceContent
at index position or nullpublic void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.public void learn(Coalition coalition)
BroadcastListener
GlobalWorkspace
and thus it should be managed by the receiving module.
learn
in interface BroadcastListener
coalition
- the Coalition
that won the most recent competition for consciousness
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |