Enum Class Performative

java.lang.Object
java.lang.Enum<Performative>
dev.agenor.core.dialogue.Performative
All Implemented Interfaces:
Serializable, Comparable<Performative>, Constable

public enum Performative extends Enum<Performative>
Communicative act types for agent dialogue. Reduced to 10 pragmatic primitives from FIPA's 22+.
Since:
0.5.0
  • Enum Constant Details

    • REQUEST

      public static final Performative REQUEST
      Request action execution
    • QUERY

      public static final Performative QUERY
      Ask for information
    • INFORM

      public static final Performative INFORM
      Provide information
    • AGREE

      public static final Performative AGREE
      Accept to perform action
    • REFUSE

      public static final Performative REFUSE
      Decline request
    • FAILURE

      public static final Performative FAILURE
      Report action failure
    • PROPOSE

      public static final Performative PROPOSE
      Make a proposal
    • CFP

      public static final Performative CFP
      Call for proposals
    • CANCEL

      public static final Performative CANCEL
      Cancel ongoing interaction
    • NOTIFY

      public static final Performative NOTIFY
      Notify of event
  • Method Details

    • values

      public static Performative[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Performative valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createsCommitment

      public boolean createsCommitment()
      Returns:
      true if this performative creates a commitment
    • dischargesCommitment

      public boolean dischargesCommitment()
      Returns:
      true if this performative discharges a commitment
    • expectsResponse

      public boolean expectsResponse()
      Returns:
      true if this performative expects a response