public enum BuiltInConfigurationType extends java.lang.Enum<BuiltInConfigurationType> implements ConfigurationType
BuiltInConfigurationType
is an enum representing all the various types of hardware
whose semantics and supporting logic is built into the SDK.ConfigurationType.DeviceFlavor, ConfigurationType.DisplayNameFlavor
Enum Constant and Description |
---|
ACCELEROMETER |
ADAFRUIT_COLOR_SENSOR |
ANALOG_OUTPUT |
COLOR_SENSOR |
COMPASS |
DEVICE_INTERFACE_MODULE |
GYRO |
I2C_DEVICE
Deprecated.
|
I2C_DEVICE_SYNCH
Deprecated.
|
IR_SEEKER |
IR_SEEKER_V3 |
LEGACY_MODULE_CONTROLLER |
LIGHT_SENSOR |
LYNX_COLOR_SENSOR |
LYNX_MODULE |
LYNX_USB_DEVICE |
MATRIX_CONTROLLER |
MOTOR_CONTROLLER |
NOTHING |
PULSE_WIDTH_DEVICE |
ROBOT |
SERVO_CONTROLLER |
TOUCH_SENSOR |
TOUCH_SENSOR_MULTIPLEXER |
ULTRASONIC_SENSOR |
UNKNOWN |
WEBCAM |
Modifier and Type | Method and Description |
---|---|
static ConfigurationType |
fromString(java.lang.String toString) |
static ConfigurationType |
fromUSBDeviceType(DeviceManager.UsbDeviceType type) |
static BuiltInConfigurationType |
fromXmlTag(java.lang.String xmlTag) |
ConfigurationType.DeviceFlavor |
getDeviceFlavor()
Returns the configuration type's most specific flavor.
|
java.lang.String |
getDisplayName(ConfigurationType.DisplayNameFlavor flavor)
Returns a user-understandable string form of this configuration type
|
java.lang.String |
getXmlTag()
Returns the XML element tag to be used when serializing configurations of this type
|
java.lang.String[] |
getXmlTagAliases()
Returns any additional XML tags that will resolve to this type
|
boolean |
isDeprecated()
Whether the type should be presented as deprecated in the user interface
|
boolean |
isDeviceFlavor(ConfigurationType.DeviceFlavor flavor)
Returns whether this configuration type is of the indicated flavor
|
DeviceManager.UsbDeviceType |
toUSBDeviceType()
If this configuration type has a corresponding USB device configuration type, returns same;
otherwise, returns
FTDI_USB_UNKNOWN_DEVICE . |
static BuiltInConfigurationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInConfigurationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltInConfigurationType GYRO
public static final BuiltInConfigurationType COMPASS
public static final BuiltInConfigurationType IR_SEEKER
public static final BuiltInConfigurationType LIGHT_SENSOR
public static final BuiltInConfigurationType ACCELEROMETER
public static final BuiltInConfigurationType MOTOR_CONTROLLER
public static final BuiltInConfigurationType SERVO_CONTROLLER
public static final BuiltInConfigurationType LEGACY_MODULE_CONTROLLER
public static final BuiltInConfigurationType DEVICE_INTERFACE_MODULE
@Deprecated public static final BuiltInConfigurationType I2C_DEVICE
@Deprecated public static final BuiltInConfigurationType I2C_DEVICE_SYNCH
public static final BuiltInConfigurationType TOUCH_SENSOR
public static final BuiltInConfigurationType ANALOG_OUTPUT
public static final BuiltInConfigurationType PULSE_WIDTH_DEVICE
public static final BuiltInConfigurationType IR_SEEKER_V3
public static final BuiltInConfigurationType TOUCH_SENSOR_MULTIPLEXER
public static final BuiltInConfigurationType MATRIX_CONTROLLER
public static final BuiltInConfigurationType ULTRASONIC_SENSOR
public static final BuiltInConfigurationType ADAFRUIT_COLOR_SENSOR
public static final BuiltInConfigurationType COLOR_SENSOR
public static final BuiltInConfigurationType LYNX_COLOR_SENSOR
public static final BuiltInConfigurationType LYNX_USB_DEVICE
public static final BuiltInConfigurationType LYNX_MODULE
public static final BuiltInConfigurationType WEBCAM
public static final BuiltInConfigurationType ROBOT
public static final BuiltInConfigurationType NOTHING
public static final BuiltInConfigurationType UNKNOWN
public static BuiltInConfigurationType[] values()
for (BuiltInConfigurationType c : BuiltInConfigurationType.values()) System.out.println(c);
public static BuiltInConfigurationType 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 static BuiltInConfigurationType fromXmlTag(java.lang.String xmlTag)
public static ConfigurationType fromString(java.lang.String toString)
public static ConfigurationType fromUSBDeviceType(DeviceManager.UsbDeviceType type)
public boolean isDeviceFlavor(ConfigurationType.DeviceFlavor flavor)
ConfigurationType
isDeviceFlavor
in interface ConfigurationType
public ConfigurationType.DeviceFlavor getDeviceFlavor()
ConfigurationType
getDeviceFlavor
in interface ConfigurationType
public DeviceManager.UsbDeviceType toUSBDeviceType()
ConfigurationType
FTDI_USB_UNKNOWN_DEVICE
.toUSBDeviceType
in interface ConfigurationType
public java.lang.String getDisplayName(ConfigurationType.DisplayNameFlavor flavor)
ConfigurationType
getDisplayName
in interface ConfigurationType
public boolean isDeprecated()
ConfigurationType
isDeprecated
in interface ConfigurationType
public java.lang.String getXmlTag()
ConfigurationType
getXmlTag
in interface ConfigurationType
public java.lang.String[] getXmlTagAliases()
ConfigurationType
getXmlTagAliases
in interface ConfigurationType