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

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

public enum GeometryType
extends Enum<GeometryType>

List of all Robot geometry Types. Each type can possibly represent more kinds of geometry of same type. For each enum record, there exists relevant Class which can be returned on demand.

Author:
vejmanm

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

GROUND_VEHICLE

public static final GeometryType GROUND_VEHICLE

LEGGED_ROBOT

public static final GeometryType LEGGED_ROBOT

NAUTIC_VEHICLE

public static final GeometryType NAUTIC_VEHICLE

AERIAL_VEHICLE

public static final GeometryType AERIAL_VEHICLE

SENSOR_EFFECTER

public static final GeometryType SENSOR_EFFECTER

MISSION_PACKAGE

public static final GeometryType MISSION_PACKAGE
Method Detail

values

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

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

valueOf

public static GeometryType 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 GeometryType getType(String type)
For each geometry type it checks if type matches one of kinds. If so, it returns relevant GeometryType. Notice that this method is static. If nothing matches, it returns SENSOR_EFECTER

Parameters:
type - String representation or kind of Geometry
Returns:
Returns relevant GeometryType value to the String type

getModuleClass

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

Returns:
Returns class relevant to Actual GeometryType


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