unsw.cse.mica.blackboard
Class BlackboardMessage

java.lang.Object
  extended by unsw.cse.mica.agent.Message
      extended by unsw.cse.mica.blackboard.BlackboardMessage

public class BlackboardMessage
extends Message

An extension of the Message class to allow an agent name to be attached to the message

Author:
jhw

Field Summary
 
Fields inherited from class unsw.cse.mica.agent.Message
TYPE_DELETEDMOB, TYPE_NEWMOB, TYPE_REPLACEDMOB, TYPE_TYPEMANAGERCHANGED
 
Method Summary
 java.lang.String getAgentName()
          Get the name of the agent for which this message is intended.
 java.lang.String toString()
          Get a string representation of this message
 
Methods inherited from class unsw.cse.mica.agent.Message
getMob1, getMob2, getType, isDeletedMob, isNewMob, isReplacedMob, isTypeManagerChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAgentName

public java.lang.String getAgentName()
Get the name of the agent for which this message is intended.

Returns:
the name of the agent for which this message is intended

toString

public java.lang.String toString()
Description copied from class: Message
Get a string representation of this message

Overrides:
toString in class Message
Returns:
a string representation of this message.