madkit.kernel
Class ObjectMessage<T>

java.lang.Object
  extended by madkit.kernel.Message
      extended by madkit.kernel.ObjectMessage<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ObjectMessage<T>
extends Message

A message that conveys an arbitrary object of type T.

See Also:
Serialized Form

Constructor Summary
ObjectMessage(T theContent)
          Instantiates a new object message with a content of type T.
 
Method Summary
 T getContent()
          Gets the content of the message.
 
Methods inherited from class madkit.kernel.Message
clone, getCreationDate, getReceiver, getSender, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectMessage

public ObjectMessage(T theContent)
Instantiates a new object message with a content of type T.

Parameters:
theContent - of the message
Method Detail

getContent

public T getContent()
Gets the content of the message.

Returns:
the object contained in the message.


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.