|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlobalWorkspace
Interface for GlobalWorkspace.
It receives Coalition
objects generated by AttentionCodelet
s
from Workspace. Different BroadcastTrigger
s can be registered
dynamically. When a Trigger fires, all registered BroadcastListener
s
receive the winner Coalition content. Modules that receive broadcast must
register implementing BroadcastListener
interface
Method Summary | |
---|---|
void |
addBroadcastListener(BroadcastListener bl)
To register a BroadcastListener . |
void |
addBroadcastTrigger(BroadcastTrigger t)
To register Triggers |
boolean |
addCoalition(Coalition coalition)
This method is invoked by the AttentionCodelet to add a new
Coalition |
long |
getBroadcastSentCount()
Returns broadcastSentCount |
DecayStrategy |
getCoalitionDecayStrategy()
Gets coalitionDecayStrategy |
double |
getCoalitionRemovalThreshold()
Gets coalition removal threshold |
long |
getTickAtLastBroadcast()
Gets the tick at last broadcast |
void |
setCoalitionDecayStrategy(DecayStrategy ds)
Sets coalitionDecayStrategy |
void |
setCoalitionRemovalThreshold(double threshold)
Sets coalition removal threshold |
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 |
---|
getParam, init, init |
Methods inherited from interface edu.memphis.ccrg.lida.globalworkspace.triggers.TriggerListener |
---|
triggerBroadcast |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.RefractoryPeriod |
---|
getRefractoryPeriod, setRefractoryPeriod |
Method Detail |
---|
boolean addCoalition(Coalition coalition)
AttentionCodelet
to add a new
Coalition
coalition
- to be added
void addBroadcastTrigger(BroadcastTrigger t)
t
- a new Triggervoid addBroadcastListener(BroadcastListener bl)
BroadcastListener
. Each registered
BroadcastListener
receives Broadcast Implements Observer Pattern
bl
- the BroadcastListener to registerlong getBroadcastSentCount()
long getTickAtLastBroadcast()
void setCoalitionDecayStrategy(DecayStrategy ds)
ds
- DecayStrategy
by which coalitions will be decayed.DecayStrategy getCoalitionDecayStrategy()
DecayStrategy
by which coalitions will be decayed.void setCoalitionRemovalThreshold(double threshold)
threshold
- lower bound for coalitions to remain in the GlobalWorkspace
double getCoalitionRemovalThreshold()
GlobalWorkspace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |