Class CGREvent
java.lang.Object
madkit.kernel.Message
madkit.messages.ObjectMessage<HookMessage.AgentActionEvent>
madkit.message.hook.HookMessage
madkit.message.hook.CGREvent
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
MessageEvent
,OrganizationEvent
Root class of messages which are sent to agents that have requested hooks to
the kernel
- Since:
- MadKit 5.0.0.19
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class madkit.message.hook.HookMessage
HookMessage.AgentActionEvent
-
Method Summary
Modifier and TypeMethodDescriptionabstract AgentAddress
Returns the address of the agent that did the request.toString()
Returns a string representation of the message.Methods inherited from class madkit.messages.ObjectMessage
getContent
Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender, getSenderRole
-
Method Details
-
getSourceAgent
Returns the address of the agent that did the request.- Returns:
- the name of the agent that triggers the event
-
toString
Description copied from class:ObjectMessage
Returns a string representation of the message.- Overrides:
toString
in classObjectMessage<HookMessage.AgentActionEvent>
- Returns:
- a string representation of the message
- See Also:
-