public enum HardwareType extends java.lang.Enum<HardwareType>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
blockTypePrefix
The prefix of all block types associated with this HardwareType.
|
java.lang.String |
createDropdownFunctionName
The name of the javascript function which creates a block dropdown showing the names of all
hardware items of this HardwareType.
|
java.lang.Class<? extends HardwareDevice> |
deviceType
The common type shared by all instances of this HardwareType.
|
java.lang.String |
identifierSuffixForFtcJava
The suffix appended, only if necessary to make them unique, to FtcJava identifiers for devices of this HardwareType.
|
java.lang.String |
identifierSuffixForJavaScript
The suffix of all JavaScript identifiers for devices of this HardwareType.
|
java.lang.String |
toolboxCategoryName
The name of the toolbox category associated with this HardwareType.
|
ToolboxFolder |
toolboxFolder
The toolbox folder that will contain the toolbox category associated with this HardwareType.
|
ToolboxIcon |
toolboxIcon
The toolbox icon enum associated with this HardwareType.
|
java.lang.String[] |
xmlTags
The xmlTags corresponding to this HardwareType.
|
Modifier and Type | Method and Description |
---|---|
static HardwareType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HardwareType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HardwareType ACCELERATION_SENSOR
public static final HardwareType ANALOG_INPUT
public static final HardwareType ANALOG_OUTPUT
public static final HardwareType BNO055IMU
public static final HardwareType COLOR_RANGE_SENSOR
public static final HardwareType COLOR_SENSOR
public static final HardwareType COMPASS_SENSOR
public static final HardwareType CR_SERVO
public static final HardwareType DC_MOTOR
public static final HardwareType DIGITAL_CHANNEL
public static final HardwareType DISTANCE_SENSOR
public static final HardwareType GYRO_SENSOR
public static final HardwareType IR_SEEKER_SENSOR
public static final HardwareType LED
public static final HardwareType LIGHT_SENSOR
public static final HardwareType LYNX_MODULE
public static final HardwareType MR_I2C_COMPASS_SENSOR
public static final HardwareType MR_I2C_RANGE_SENSOR
public static final HardwareType OPTICAL_DISTANCE_SENSOR
public static final HardwareType REV_BLINKIN_LED_DRIVER
public static final HardwareType SERVO
public static final HardwareType SERVO_CONTROLLER
public static final HardwareType TOUCH_SENSOR
public static final HardwareType ULTRASONIC_SENSOR
public static final HardwareType VOLTAGE_SENSOR
public static final HardwareType WEBCAM_NAME
public final java.lang.String createDropdownFunctionName
HardwareUtil.fetchJavaScriptForHardware()
. This must match the function name used in the
appropriate js file.public final java.lang.String blockTypePrefix
ToolboxUtil
. This must match the prefix used in the appropriate js file.public final java.lang.String identifierSuffixForJavaScript
public final java.lang.String identifierSuffixForFtcJava
public final ToolboxFolder toolboxFolder
public final java.lang.String toolboxCategoryName
public final ToolboxIcon toolboxIcon
public final java.lang.Class<? extends HardwareDevice> deviceType
public final java.lang.String[] xmlTags
public static HardwareType[] values()
for (HardwareType c : HardwareType.values()) System.out.println(c);
public static HardwareType 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 null