madkit.message.hook

## Class CGREvent

- java.lang.Object
- - madkit.kernel.Message
  - - madkit.message.ObjectMessage<HookMessage.AgentActionEvent>
    - - madkit.message.hook.HookMessage
      - - madkit.message.hook.CGREvent

- All Implemented Interfaces:
    Serializable, Cloneable
  Direct Known Subclasses:
    MessageEvent, OrganizationEvent

      public abstract class CGREvent
      extends HookMessage

  Root class of messages which are sent to agents that have requested hooks to the kernel
  Since:
    MadKit 5.0.0.19
  Version:
    0.9
  Author:
    Fabien Michel
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class madkit.message.hook.HookMessage

      `HookMessage.AgentActionEvent`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract AgentAddress` | `getSourceAgent()` Returns the address of the agent that did the request.
    `String` | `toString()`

    - ### Methods inherited from class madkit.message.ObjectMessage

      `getContent, max, min, sort`

    - ### Methods inherited from class madkit.kernel.Message

      `clone, getConversationID, getReceiver, getSender`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getSourceAgent

          public abstract AgentAddress getSourceAgent()

      Returns the address of the agent that did the request.
      Returns:
        the name of the agent that triggers the event

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `ObjectMessage<HookMessage.AgentActionEvent>`
      See Also:
        `Message.toString()`

Fabien Michel, Olivier Gutknecht, Jacques Ferber