|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.Message
public class Message
The generic MadKit message class. Use a subclass to adapt it to your needs. This class is quite lightweight, it just defines sender and receivers (expressed with AgentAddres class) and automatically stamp the date of send on the message
Constructor Summary | |
---|---|
Message()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Mandatory for some deep optimizations in the micro kernel message passing code |
java.util.Date |
getCreationDate()
Returns the creation date for the message (instanciation time) |
AgentAddress |
getReceiver()
Returns the intended receiver |
AgentAddress |
getSender()
Returns the original sender. |
java.lang.String |
toString()
Returns a debug string with enveloppe and content for the message |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Message()
Method Detail |
---|
public final AgentAddress getSender()
public final AgentAddress getReceiver()
public final java.util.Date getCreationDate()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |