edu.memphis.ccrg.lida.workspace
Class MockBroadcastQueueImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
      extended by edu.memphis.ccrg.lida.workspace.workspacebuffers.BroadcastQueueImpl
          extended by edu.memphis.ccrg.lida.workspace.MockBroadcastQueueImpl
All Implemented Interfaces:
FrameworkModule, FullyInitializable, Initializable, ModuleListener, BroadcastListener, WorkspaceBuffer

public class MockBroadcastQueueImpl
extends BroadcastQueueImpl


Field Summary
 BroadcastContent broadcastContent
           
 
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
taskSpawner
 
Constructor Summary
MockBroadcastQueueImpl()
           
 
Method Summary
 void receiveBroadcast(BroadcastContent bc)
          This method should return as possible in order to not delay the rest of the broadcasting.
 
Methods inherited from class edu.memphis.ccrg.lida.workspace.workspacebuffers.BroadcastQueueImpl
addBufferContent, addListener, decayModule, getBufferContent, getModuleContent, init, learn
 
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
 

Field Detail

broadcastContent

public BroadcastContent broadcastContent
Constructor Detail

MockBroadcastQueueImpl

public MockBroadcastQueueImpl()
Method Detail

receiveBroadcast

public void receiveBroadcast(BroadcastContent bc)
Description copied from interface: BroadcastListener
This method should return as possible in order to not delay the rest of the broadcasting. A good implementation should copy the broadcast content and create a task to process it.

Specified by:
receiveBroadcast in interface BroadcastListener
Overrides:
receiveBroadcast in class BroadcastQueueImpl
Parameters:
bc - the Content of the Broadcast