cz.cuni.amis.pogamut.usar2004.agent.module.datatypes
Enum VehicleType
java.lang.Object
java.lang.Enum<VehicleType>
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
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
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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.