Class EnumMessage<E extends Enum<E>>
- Type Parameters:
E
- the type of the enumeration used to tag the message content
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
KernelMessage
,SchedulingMessage
This parameterizable class could be used to build a message tagged with an enumeration
and conveying any java objects using an array of Object.
- Since:
- MaDKit 5.0.0.14
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnumMessage
(E code, Object... parameters) Builds a message with the specified content -
Method Summary
Methods inherited from class madkit.messages.ObjectMessage
getContent
Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender, getSenderRole
-
Constructor Details
-
EnumMessage
-
-
Method Details
-
toString
To string.- Overrides:
toString
in classObjectMessage<Object[]>
- Returns:
- the string
- See Also:
-
getCode
- Returns:
- the enum constant which has been used to construct this message
-