Package com.tnsai.protocols.fipa
Enum Class ConversationProtocol.ProtocolState
java.lang.Object
java.lang.Enum<ConversationProtocol.ProtocolState>
com.tnsai.protocols.fipa.ConversationProtocol.ProtocolState
- All Implemented Interfaces:
Serializable,Comparable<ConversationProtocol.ProtocolState>,Constable
- Enclosing interface:
ConversationProtocol
public static enum ConversationProtocol.ProtocolState
extends Enum<ConversationProtocol.ProtocolState>
Protocol execution states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWaiting for initiator to send first messageWaiting for responder's replyCancelled by participantCompleted with failure/refusalSuccessfully completedError occurredNot yet startedProcessing multi-round negotiationTimed out -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConversationProtocol.ProtocolState[]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
-
INITIAL
Not yet started -
AWAITING_INITIATION
Waiting for initiator to send first message -
AWAITING_RESPONSE
Waiting for responder's reply -
NEGOTIATING
Processing multi-round negotiation -
COMPLETED_SUCCESS
Successfully completed -
COMPLETED_FAILURE
Completed with failure/refusal -
CANCELLED
Cancelled by participant -
TIMED_OUT
Timed out -
ERROR
Error occurred
-
-
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
-