edu.memphis.ccrg.lida.framework.mockclasses
Class MockBroadcastListener

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.mockclasses.MockBroadcastListener
All Implemented Interfaces:
ModuleListener, BroadcastListener

public class MockBroadcastListener
extends java.lang.Object
implements BroadcastListener


Field Summary
 BroadcastContent content
           
 
Constructor Summary
MockBroadcastListener()
           
 
Method Summary
 void learn(BroadcastContent bc)
          This is a placeholder method to remind implementing classes that they should implement learning.
 void receiveBroadcast(BroadcastContent bc)
          This method should return as possible in order to not delay the rest of the broadcasting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

public BroadcastContent content
Constructor Detail

MockBroadcastListener

public MockBroadcastListener()
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
Parameters:
bc - the Content of the Broadcast

learn

public void learn(BroadcastContent bc)
Description copied from interface: BroadcastListener
This is a placeholder method to remind implementing classes that they should implement learning. LIDA theory says receivers of the broadcast should learn from it. This method will not be called directly by GlobalWorkspace but should be managed by the receiving module.

Specified by:
learn in interface BroadcastListener
Parameters:
bc - content