brahms.communication
Enum Performative

java.lang.Object
  extended by java.lang.Enum<Performative>
      extended by brahms.communication.Performative
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Performative>

public enum Performative
extends java.lang.Enum<Performative>

The types of performatives supported for a communicative act identifying the type of message.

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:03:00 $ $Author: rvhoof $
Author:
Ron van Hoof

Enum Constant Summary
ACCEPT_PROPOSAL
           
ACKNOWLEDGE
           
AGREE
           
CALL_FOR_PROPOSAL
           
CANCEL
           
CONFIRM
           
DISCONFIRM
           
FAILURE
           
INFORM
           
INFORM_IF
           
INFORM_REF
           
NOT_UNDERSTOOD
           
PROPAGATE
           
PROPOSE
           
PROXY
           
QUERY_IF
           
QUERY_REF
           
REFUSE
           
REJECT_PROPOSAL
           
REQUEST
           
REQUEST_WHEN
           
REQUEST_WHENEVER
           
SUBSCRIBE
           
 
Method Summary
static Performative getValueOf(java.lang.String value)
          Returns the Performative enumeration value represented by the specified value.
static Performative valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Performative[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACCEPT_PROPOSAL

public static final Performative ACCEPT_PROPOSAL

ACKNOWLEDGE

public static final Performative ACKNOWLEDGE

AGREE

public static final Performative AGREE

CANCEL

public static final Performative CANCEL

CALL_FOR_PROPOSAL

public static final Performative CALL_FOR_PROPOSAL

CONFIRM

public static final Performative CONFIRM

DISCONFIRM

public static final Performative DISCONFIRM

FAILURE

public static final Performative FAILURE

INFORM

public static final Performative INFORM

INFORM_IF

public static final Performative INFORM_IF

INFORM_REF

public static final Performative INFORM_REF

NOT_UNDERSTOOD

public static final Performative NOT_UNDERSTOOD

PROPAGATE

public static final Performative PROPAGATE

PROPOSE

public static final Performative PROPOSE

PROXY

public static final Performative PROXY

QUERY_IF

public static final Performative QUERY_IF

QUERY_REF

public static final Performative QUERY_REF

REFUSE

public static final Performative REFUSE

REJECT_PROPOSAL

public static final Performative REJECT_PROPOSAL

REQUEST

public static final Performative REQUEST

REQUEST_WHEN

public static final Performative REQUEST_WHEN

REQUEST_WHENEVER

public static final Performative REQUEST_WHENEVER

SUBSCRIBE

public static final Performative SUBSCRIBE
Method Detail

values

public static Performative[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Performative c : Performative.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Performative valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValueOf

public static Performative getValueOf(java.lang.String value)
Returns the Performative enumeration value represented by the specified value. This method is case insensitive unlike the valueOf method which is case sensitive.

Parameters:
value - the value to be converted to the enum constant
Returns:
Performative the enum constant for the value
Throws:
java.lang.IllegalArgumentException - if the specified enum type has no constant with the specified name, or the specified class object does not represent an enum type
java.lang.NullPointerException - if value is null


Copyright © 1997-2012 All Rights Reserved.