|
||||||||||
| 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.WorkspaceImpl
public class WorkspaceImpl
The Workspace contains the Perceptual and Episodic Buffers as well as the Broadcast Queue and Current Situational Model. This class implements the Facade pattern. Any outside module that wishes to access and/or modify these Workspace components must do so through this class. Thus this class defines the methods to access the data of these submodules.
| Field Summary |
|---|
| Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
|---|
taskSpawner |
| Constructor Summary | |
|---|---|
WorkspaceImpl()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addCueListener(CueListener l)
Add episodic memory that will listen for cues from the Workspace |
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
addWorkspaceListener(WorkspaceListener listener)
Adds specified WorkspaceListener |
void |
cueEpisodicMemories(NodeStructure content)
Prompts this Workspace to cue episodic memories with content. |
void |
decayModule(long ticks)
Should do nothing, submodules' decayModule method will be called in FrameworkModuleImpl#taskManagerDecayModule. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
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. |
void |
receiveLocalAssociation(NodeStructure association)
|
void |
receivePercept(Link l)
Receive a Link percept. |
void |
receivePercept(Node n)
Receive a Node percept. |
void |
receivePercept(NodeStructure newPercept)
Receive a NodeStructure percept. |
| 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, 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, init |
| Constructor Detail |
|---|
public WorkspaceImpl()
| Method Detail |
|---|
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener in interface FrameworkModuleaddListener in class FrameworkModuleImpllistener - - listener of this FrameworkModulepublic void addCueListener(CueListener l)
Workspace
addCueListener in interface Workspacel - listenerpublic void addWorkspaceListener(WorkspaceListener listener)
WorkspaceWorkspaceListener
addWorkspaceListener in interface Workspacelistener - listener of this Workspacepublic void cueEpisodicMemories(NodeStructure content)
Workspace
cueEpisodicMemories in interface Workspacecontent - NodeStructure to cue with.public void receiveBroadcast(Coalition c)
BroadcastListenerCoalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast in interface BroadcastListenerc - the Coalition that won the most recent competition for consciousnesspublic void receiveLocalAssociation(NodeStructure association)
receiveLocalAssociation in interface LocalAssociationListenerassociation - The response generated from the Episodic Memory to a previous cue.public void receivePercept(NodeStructure newPercept)
PamListenerNodeStructure percept.
receivePercept in interface PamListenernewPercept - a NodeStructurepublic void receivePercept(Node n)
PamListenerNode percept.
receivePercept in interface PamListenern - a Nodepublic void receivePercept(Link l)
PamListenerLink percept.
receivePercept in interface PamListenerl - a Linkpublic java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent in interface FrameworkModulegetModuleContent in class FrameworkModuleImplparams - parameters specifying what content will be returned
public void learn(Coalition coalition)
BroadcastListenerGlobalWorkspace
and thus it should be managed by the receiving module.
learn in interface BroadcastListenercoalition - the Coalition that won the most recent competition for consciousnesspublic void decayModule(long ticks)
decayModule in interface FrameworkModuleticks - number of ticks to decay.FrameworkModule.decayModule(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||