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

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

public enum SensorType
extends Enum<SensorType>

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

Author:
vejmanm

Enum Constant Summary
ACCELERATION_SENSOR
           
ENCODER_SENSOR
           
GPS_SENSOR
           
GROUND_TRUTH
           
HELPER_SENSOR
           
HUMAN_MOTION_DETECTION
           
INS_SENSOR
           
LASER_SENSOR
           
ODOMETRY_SENSOR
           
RANGE_SENSOR
           
RFID_SENSOR
           
SOUND_SENSOR
           
TACHOMETER
           
TOUCH_SENSOR
           
UNKNOWN_SENSOR
           
VICTIM_SENSOR
           
 
Method Summary
 Class getModuleClass()
          Notice that this method is not static.
static SensorType getType(String type)
          For each sensor type it chacks if type matches one of kinds.
static SensorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SensorType[] 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

ENCODER_SENSOR

public static final SensorType ENCODER_SENSOR

ACCELERATION_SENSOR

public static final SensorType ACCELERATION_SENSOR

GPS_SENSOR

public static final SensorType GPS_SENSOR

HUMAN_MOTION_DETECTION

public static final SensorType HUMAN_MOTION_DETECTION

INS_SENSOR

public static final SensorType INS_SENSOR

LASER_SENSOR

public static final SensorType LASER_SENSOR

ODOMETRY_SENSOR

public static final SensorType ODOMETRY_SENSOR

RFID_SENSOR

public static final SensorType RFID_SENSOR

RANGE_SENSOR

public static final SensorType RANGE_SENSOR

SOUND_SENSOR

public static final SensorType SOUND_SENSOR

TACHOMETER

public static final SensorType TACHOMETER

TOUCH_SENSOR

public static final SensorType TOUCH_SENSOR

VICTIM_SENSOR

public static final SensorType VICTIM_SENSOR

HELPER_SENSOR

public static final SensorType HELPER_SENSOR

GROUND_TRUTH

public static final SensorType GROUND_TRUTH

UNKNOWN_SENSOR

public static final SensorType UNKNOWN_SENSOR
Method Detail

values

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

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

valueOf

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

Parameters:
type - String representation or kind of Sensor
Returns:
Returns relevant SensorType value to the String type

getModuleClass

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

Returns:
Returns class relevant to Actual SensorType


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