cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages
Enum TCRecipient

Package class diagram package TCRecipient
java.lang.Object
  extended by java.lang.Enum<TCRecipient>
      extended by cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCRecipient
All Implemented Interfaces:
Serializable, Comparable<TCRecipient>

public enum TCRecipient
extends Enum<TCRecipient>


Enum Constant Summary
CHANNEL
           
GLOBAL
           
PRIVATE
           
TC_INFO
          Special type of the recipient - sent by TCMinaServer and consumed by TCMinaClient.
TC_REQUEST
          Special type of the recipient - sent by TCMinaClient and consumed by TCMinaServer.
TEAM
           
 
Method Summary
static TCRecipient valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TCRecipient[] 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

GLOBAL

public static final TCRecipient GLOBAL

TEAM

public static final TCRecipient TEAM

CHANNEL

public static final TCRecipient CHANNEL

PRIVATE

public static final TCRecipient PRIVATE

TC_INFO

public static final TCRecipient TC_INFO
Special type of the recipient - sent by TCMinaServer and consumed by TCMinaClient. These messages are usually consumed by TCMinaClient but some of them are even propagated to the UT2004Bot.


TC_REQUEST

public static final TCRecipient TC_REQUEST
Special type of the recipient - sent by TCMinaClient and consumed by TCMinaServer. These messages are never received by TCMinaClient and thus they are NEVER further propagated to the UT2004Bot.

Method Detail

values

public static TCRecipient[] 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 (TCRecipient c : TCRecipient.values())
    System.out.println(c);

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

valueOf

public static TCRecipient valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.