public enum SensorType extends java.lang.Enum<SensorType>
Enum Constant and Description |
---|
TYPE_SENSOR_COLOR_BLUE
Type corresponding to color blue sensor.
|
TYPE_SENSOR_COLOR_FULL
Type corresponding to color full sensor.
|
TYPE_SENSOR_COLOR_GREEN
Type corresponding to color green sensor.
|
TYPE_SENSOR_COLOR_NONE
Type corresponding to color none sensor.
|
TYPE_SENSOR_COLOR_RED
Type corresponding to color red sensor.
|
TYPE_SENSOR_I2C
Type corresponding to I2C sensor.
|
TYPE_SENSOR_LIGHT_OFF
Type corresponding to light off sensor.
|
TYPE_SENSOR_LIGHT_ON
Type corresponding to light on sensor.
|
TYPE_SENSOR_RAW
Type corresponding to raw sensor.
|
TYPE_SENSOR_RCX_LIGHT
Type corresponding to RCX light sensor.
|
TYPE_SENSOR_TOUCH
Type corresponding to touch sensor.
|
TYPE_SENSOR_ULTRASONIC_CONT
Type corresponding to ultrasonic sensor.
|
Modifier and Type | Method and Description |
---|---|
byte |
toByte()
Get the byte value of the sensor type
|
static SensorType |
valueOf(byte type)
Get a SensorType object by giving its byte value
|
static SensorType |
valueOf(java.lang.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.
|
public static final SensorType TYPE_SENSOR_TOUCH
public static final SensorType TYPE_SENSOR_ULTRASONIC_CONT
public static final SensorType TYPE_SENSOR_COLOR_FULL
public static final SensorType TYPE_SENSOR_LIGHT_ON
public static final SensorType TYPE_SENSOR_RCX_LIGHT
public static final SensorType TYPE_SENSOR_COLOR_RED
public static final SensorType TYPE_SENSOR_COLOR_GREEN
public static final SensorType TYPE_SENSOR_COLOR_BLUE
public static final SensorType TYPE_SENSOR_COLOR_NONE
public static final SensorType TYPE_SENSOR_I2C
public static final SensorType TYPE_SENSOR_RAW
public static final SensorType TYPE_SENSOR_LIGHT_OFF
public static SensorType[] values()
for (SensorType c : SensorType.values()) System.out.println(c);
public static SensorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte toByte()
public static SensorType valueOf(byte type)
type
- the byte value type