Package com.tnsai.protocols.fipa
Enum Class FIPAPerformative
- All Implemented Interfaces:
Serializable,Comparable<FIPAPerformative>,Constable
FIPA Agent Communication Language (ACL) performatives.
Performatives define the communicative act intended by a message. Based on FIPA ACL specification (FIPA00037).
Categories
- Assertive - Inform, Confirm, Disconfirm
- Directive - Request, Query, Subscribe
- Commissive - Propose, Accept, Reject
- Expressive - Not typically used in agent systems
- Declarative - Cancel, Failure
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSender accepts a proposal.Sender agrees to perform action.Sender cancels a previous request.Sender offers to perform service.Sender confirms a previously uncertain proposition.Sender denies a previously uncertain proposition.Sender reports failure to perform action.Sender informs receiver of a proposition.Sender infers receiver's belief is false.Sender provides object reference.Sender doesn't understand message.Sender propagates message to others.Sender makes a proposal to receiver.Sender proxies message through receiver.Sender asks whether proposition is true.Sender asks for object matching description.Sender refuses to perform action.Sender rejects a proposal.Sender requests receiver to perform an action.Sender requests receiver to perform action when condition holds.Sender requests receiver to perform action repeatedly.Sender subscribes to receive updates. -
Method Summary
Modifier and TypeMethodDescriptionGets performative category.Gets performative description.booleanChecks if this is an initiating performative.booleanChecks if this indicates failure/negative response.booleanChecks if this indicates success/positive response.booleanChecks if this is a responding performative.static FIPAPerformativeReturns the enum constant of this class with the specified name.static FIPAPerformative[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INFORM
Sender informs receiver of a proposition. Precondition: Sender believes the proposition. -
CONFIRM
Sender confirms a previously uncertain proposition. -
DISCONFIRM
Sender denies a previously uncertain proposition. -
INFORM_IF
Sender infers receiver's belief is false. -
INFORM_REF
Sender provides object reference. -
REQUEST
Sender requests receiver to perform an action. -
REQUEST_WHEN
Sender requests receiver to perform action when condition holds. -
REQUEST_WHENEVER
Sender requests receiver to perform action repeatedly. -
QUERY_REF
Sender asks for object matching description. -
QUERY_IF
Sender asks whether proposition is true. -
SUBSCRIBE
Sender subscribes to receive updates. -
PROPOSE
Sender makes a proposal to receiver. -
ACCEPT_PROPOSAL
Sender accepts a proposal. -
REJECT_PROPOSAL
Sender rejects a proposal. -
AGREE
Sender agrees to perform action. -
REFUSE
Sender refuses to perform action. -
CFP
Sender offers to perform service. -
CANCEL
Sender cancels a previous request. -
FAILURE
Sender reports failure to perform action. -
NOT_UNDERSTOOD
Sender doesn't understand message. -
PROPAGATE
Sender propagates message to others. -
PROXY
Sender proxies message through receiver.
-
-
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
-
getDescription
Gets performative description.- Returns:
- description
-
getCategory
Gets performative category.- Returns:
- category
-
isInitiating
public boolean isInitiating()Checks if this is an initiating performative.- Returns:
- true if typically starts a conversation
-
isResponding
public boolean isResponding()Checks if this is a responding performative.- Returns:
- true if typically responds to an initiator
-
isPositive
public boolean isPositive()Checks if this indicates success/positive response.- Returns:
- true if positive
-
isNegative
public boolean isNegative()Checks if this indicates failure/negative response.- Returns:
- true if negative
-