cz.cuni.amis.pogamut.usar2004.agent.module.datatypes
Enum ResponseType

Package class diagram package ResponseType
java.lang.Object
  extended by java.lang.Enum<ResponseType>
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.ResponseType
All Implemented Interfaces:
Serializable, Comparable<ResponseType>

public enum ResponseType
extends Enum<ResponseType>

List of all Robot Response Types. Each type can represent only one kind of Response type. For each enum record, there exists relevant Class which can be returned on demand.

Author:
vejmanm

Enum Constant Summary
CAMERA
           
SENSOR_EFFECTER
           
VIEWPORT
           
 
Method Summary
 Class getModuleClass()
          Notice that this method is not static.
static ResponseType getType(String type)
          For each Response type it checks if type matches one of kinds.
static ResponseType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResponseType[] 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

CAMERA

public static final ResponseType CAMERA

VIEWPORT

public static final ResponseType VIEWPORT

SENSOR_EFFECTER

public static final ResponseType SENSOR_EFFECTER
Method Detail

values

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

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

valueOf

public static ResponseType 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

getType

public static ResponseType getType(String type)
For each Response type it checks if type matches one of kinds. If so, it returns relevant ResponseType. Notice that this method is static. If nothing matches, it returns SENSOR_EFFECTER

Parameters:
type - String representation or kind of Response
Returns:
Returns relevant ResponseType value to the String type

getModuleClass

public Class getModuleClass()
Notice that this method is not static.

Returns:
Returns class relevant to Actual ResponseType


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