madkit.strobekit
Class StrobeMsg

java.lang.Object
  extended bymadkit.kernel.Message
      extended bymadkit.strobekit.StrobeMsg
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class StrobeMsg
extends madkit.kernel.Message

This class define the type of message exchanged by Strobe agents. A Strobe message is logically viewed as a set of four attributes (sender receiver performative content).

This class contains methods for:

Version:
0.1 01/30/2006
Author:
Clement Jonquet - Mail to jonquet@lirmm.fr
See Also:
Serialized Form

Constructor Summary
StrobeMsg(java.lang.String p, java.lang.String c)
          Construt a Strobe message with the performative p and the content c.
 
Method Summary
 java.lang.String getContent()
          Return the Strobe message content.
 java.lang.String getPerfo()
          Return the Strobe message performative.
 java.lang.String toSchemeExp()
          Tansform the Strobe message in a Scheme expression such as (strobemsg sender receiver performative content).
 java.lang.String toString()
          Return the Strobe message as a String.
 
Methods inherited from class madkit.kernel.Message
clone, getCreationDate, getReceiver, getSender
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StrobeMsg

public StrobeMsg(java.lang.String p,
                 java.lang.String c)
Construt a Strobe message with the performative p and the content c.

Method Detail

getPerfo

public java.lang.String getPerfo()
Return the Strobe message performative.


getContent

public java.lang.String getContent()
Return the Strobe message content.


toString

public java.lang.String toString()
Return the Strobe message as a String.


toSchemeExp

public java.lang.String toSchemeExp()
Tansform the Strobe message in a Scheme expression such as (strobemsg sender receiver performative content).