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

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

public enum VehicleType
extends Enum<VehicleType>

Descriptor of vehicle type. Every robot should by one of following types: Ground, Nautic, Aerial or Legged Robot.

Author:
vejmanm

Enum Constant Summary
AERIAL_VEHICLE
           
GROUND_VEHICLE
           
LEGGED_ROBOT
           
NAUTIC_VEHICLE
           
UNKNOWN
           
 
Method Summary
 Class getModuleClass()
           
static VehicleType getType(String type)
          Used for creating instances of state message representatives.
static VehicleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VehicleType[] 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 VehicleType GROUND_VEHICLE

LEGGED_ROBOT

public static final VehicleType LEGGED_ROBOT

NAUTIC_VEHICLE

public static final VehicleType NAUTIC_VEHICLE

AERIAL_VEHICLE

public static final VehicleType AERIAL_VEHICLE

UNKNOWN

public static final VehicleType UNKNOWN
Method Detail

values

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

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

valueOf

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

getModuleClass

public Class getModuleClass()

getType

public static VehicleType getType(String type)
Used for creating instances of state message representatives.

Parameters:
type - String representation of vehicle type.
Returns:
Returns corresponding enum element.


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