public class HiTechnicNxtTouchSensorMultiplexer extends LegacyModulePortDeviceImpl implements TouchSensorMultiplexer
HardwareDevice.Manufacturer| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID |
static int[] |
MASK_MAP |
static int |
MASK_TOUCH_SENSOR_1 |
static int |
MASK_TOUCH_SENSOR_2 |
static int |
MASK_TOUCH_SENSOR_3 |
static int |
MASK_TOUCH_SENSOR_4 |
module, physicalPort| Constructor and Description |
|---|
HiTechnicNxtTouchSensorMultiplexer(LegacyModule legacyModule,
int physicalPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
HardwareDevice.Manufacturer |
getManufacturer()
Returns an indication of the manufacturer of this device.
|
int |
getSwitches() |
int |
getVersion()
Version
|
boolean |
isTouchSensorPressed(int channel) |
protected void |
moduleNowArmedOrPretending()
intended as a subclass hook
|
void |
resetDeviceConfigurationForOpMode()
Resets the device's configuration to that which is expected at the beginning of an OpMode.
|
java.lang.String |
status() |
finishConstruction, getLegacyModule, getPort, moduleNowDisarmed, onModuleStateChangepublic static final int MASK_TOUCH_SENSOR_1
public static final int MASK_TOUCH_SENSOR_2
public static final int MASK_TOUCH_SENSOR_3
public static final int MASK_TOUCH_SENSOR_4
public static final int INVALID
public static final int[] MASK_MAP
public HiTechnicNxtTouchSensorMultiplexer(LegacyModule legacyModule, int physicalPort)
protected void moduleNowArmedOrPretending()
LegacyModulePortDeviceImplmoduleNowArmedOrPretending in class LegacyModulePortDeviceImplpublic java.lang.String status()
public HardwareDevice.Manufacturer getManufacturer()
HardwareDevicegetManufacturer in interface HardwareDevicepublic java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicepublic java.lang.String getConnectionInfo()
HardwareDevicegetConnectionInfo in interface HardwareDevicepublic int getVersion()
HardwareDevicegetVersion in interface HardwareDevicepublic void resetDeviceConfigurationForOpMode()
HardwareDeviceresetDeviceConfigurationForOpMode in interface HardwareDevicepublic void close()
HardwareDeviceclose in interface HardwareDevicepublic boolean isTouchSensorPressed(int channel)
isTouchSensorPressed in interface TouchSensorMultiplexerpublic int getSwitches()
getSwitches in interface TouchSensorMultiplexer