|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void addCueListener(CueListener l)
Workspace
addCueListener
in interface Workspace
l
- listenerpublic void addWorkspaceListener(WorkspaceListener listener)
Workspace
WorkspaceListener
addWorkspaceListener
in interface Workspace
listener
- listener of this Workspacepublic void cueEpisodicMemories(NodeStructure content)
Workspace
cueEpisodicMemories
in interface Workspace
content
- NodeStructure to cue with.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 void receiveLocalAssociation(NodeStructure association)
receiveLocalAssociation
in interface LocalAssociationListener
association
- The response generated from the Episodic Memory to a previous cue.public void receivePercept(NodeStructure newPercept)
PamListener
NodeStructure
percept.
receivePercept
in interface PamListener
newPercept
- a NodeStructurepublic void receivePercept(Node n)
PamListener
Node
percept.
receivePercept
in interface PamListener
n
- a Node
public void receivePercept(Link l)
PamListener
Link
percept.
receivePercept
in interface PamListener
l
- a Link
public 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 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 consciousnesspublic void decayModule(long ticks)
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.FrameworkModule.decayModule(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |