Class ObjectMessage<T>
java.lang.Object
madkit.kernel.Message
madkit.messages.ObjectMessage<T>
- Type Parameters:
T
- the type of the object to be conveyed
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
BooleanMessage
,EnumMessage
,HookMessage
,IntegerMessage
,MapMessage
,StringMessage
This parameterizable class could be used to convey any Java Object between MaDKit
agents.
- Since:
- MaDKit 5.0.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the content of this messagetoString()
Returns a string representation of the message.Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender, getSenderRole
-
Constructor Details
-
ObjectMessage
Builds a message with the specified content- Parameters:
content
- the object to be conveyed
-
-
Method Details
-
getContent
Gets the content of this message- Returns:
- the object of type T contained in the message
-
toString
-