Class ConversationID

java.lang.Object
madkit.kernel.ConversationID
All Implemented Interfaces:
Serializable

public final class ConversationID extends Object implements Serializable
This class represents the conversation ID to which a message belongs. When a message is created, it is given an ID that will be used to tag all the messages that will be created for answering this message using Agent.reply(Message, Message) like methods. Especially, if the answer is again used for replying, the ID will be used again to tag this new answer, and so on.
Since:
MadKit 5.0.4
See Also:
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the conversation ID.s
      Overrides:
      toString in class Object
      Returns:
      the string
    • equals

      public boolean equals(Object obj)
      Tests if this conversation ID is equal to another.
      Overrides:
      equals in class Object
      Parameters:
      obj - the obj to compare
      Returns:
      true, if the conversation IDs are equal
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int