Class MessageAgent

java.lang.Object
pygar.communication.MessageAgent
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BAN, TeamMember

public class MessageAgent
extends java.lang.Object
implements java.lang.Runnable
The MessageAgent class is the super class for all the active participants in the system: BAN and TeamMember. The participants inherit from this class an ability to run on a thread and watch for new messages delivered by the message system. The subclasses override this classes run method with a procedure that does something useful with the messages.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String name  
    PmessageSystem pms  
    Profile profile  
    java.lang.Thread t  
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageAgent​(Profile p, java.lang.String me)  
  • Method Summary

    Modifier and Type Method Description
    void run()
    The default version of the run procedure will exit when all the queues are empty.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait