Class AgentLifeEvent
java.lang.Object
madkit.kernel.Message
madkit.messages.ObjectMessage<HookMessage.AgentActionEvent>
madkit.message.hook.HookMessage
madkit.message.hook.AgentLifeEvent
- All Implemented Interfaces:
Serializable
,Cloneable
A message which is sent to agents that have requested a hook on
HookMessage.AgentActionEvent.AGENT_STARTED
or
HookMessage.AgentActionEvent.AGENT_TERMINATED
- Since:
- MadKit 5.0.0.19
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class madkit.message.hook.HookMessage
HookMessage.AgentActionEvent
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class madkit.messages.ObjectMessage
getContent
Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender, getSenderRole
-
Constructor Details
-
AgentLifeEvent
-
-
Method Details
-
getSource
The agent which is related to this event- Returns:
- the source agent of 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:
-