Package dev.agenor.core.dialogue
Enum Class Performative
- All Implemented Interfaces:
Serializable,Comparable<Performative>,Constable
Communicative act types for agent dialogue.
Reduced to 10 pragmatic primitives from FIPA's 22+.
- Since:
- 0.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic PerformativeReturns the enum constant of this class with the specified name.static Performative[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUEST
Request action execution -
QUERY
Ask for information -
INFORM
Provide information -
AGREE
Accept to perform action -
REFUSE
Decline request -
FAILURE
Report action failure -
PROPOSE
Make a proposal -
CFP
Call for proposals -
CANCEL
Cancel ongoing interaction -
NOTIFY
Notify of event
-
-
Method Details
-
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
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 nameNullPointerException- 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
-