public static enum ConnectInfo.IOType extends java.lang.Enum<ConnectInfo.IOType>
Enum Constant and Description |
---|
IO_TYPE_CURRENT
A Current Sensor - use the CurrentSensor to communicate with this type of IO.
|
IO_TYPE_GENERIC
A type unknown to the SDK - use the
GenericService to communicate with this type of IO. |
IO_TYPE_MOTION_SENSOR
A Motion Sensor (aka.
|
IO_TYPE_MOTOR
A Motor - use the Motor to communicate with this type of IO.
|
IO_TYPE_PIEZO_TONE_PLAYER
A Piezo Tone player - use the PiezoTonePlayer to communicate with this type of IO.
|
IO_TYPE_RGB_LIGHT
An RGB light - use the RGBLight to communicate with this type of IO.
|
IO_TYPE_TILT_SENSOR
A Tilt Sensor - use the TiltSensor to communicate with this type of IO.
|
IO_TYPE_VOLTAGE
A Voltage Sensor - use the VoltageSensor to communicate with this type of IO.
|
Modifier and Type | Method and Description |
---|---|
static ConnectInfo.IOType |
fromInteger(int value) |
int |
getValue() |
static ConnectInfo.IOType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectInfo.IOType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectInfo.IOType IO_TYPE_MOTOR
Motor
public static final ConnectInfo.IOType IO_TYPE_VOLTAGE
VoltageSensor
public static final ConnectInfo.IOType IO_TYPE_CURRENT
CurrentSensor
public static final ConnectInfo.IOType IO_TYPE_PIEZO_TONE_PLAYER
PiezoTonePlayer
public static final ConnectInfo.IOType IO_TYPE_RGB_LIGHT
RGBLight
public static final ConnectInfo.IOType IO_TYPE_TILT_SENSOR
TiltSensor
public static final ConnectInfo.IOType IO_TYPE_MOTION_SENSOR
MotionSensor
public static final ConnectInfo.IOType IO_TYPE_GENERIC
GenericService
to communicate with this type of IO.public static ConnectInfo.IOType[] values()
for (ConnectInfo.IOType c : ConnectInfo.IOType.values()) System.out.println(c);
public static ConnectInfo.IOType 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 int getValue()
public static ConnectInfo.IOType fromInteger(int value)