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, onModuleStateChange
public 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()
LegacyModulePortDeviceImpl
moduleNowArmedOrPretending
in class LegacyModulePortDeviceImpl
public java.lang.String status()
public HardwareDevice.Manufacturer getManufacturer()
HardwareDevice
getManufacturer
in interface HardwareDevice
public java.lang.String getDeviceName()
HardwareDevice
getDeviceName
in interface HardwareDevice
public java.lang.String getConnectionInfo()
HardwareDevice
getConnectionInfo
in interface HardwareDevice
public int getVersion()
HardwareDevice
getVersion
in interface HardwareDevice
public void resetDeviceConfigurationForOpMode()
HardwareDevice
resetDeviceConfigurationForOpMode
in interface HardwareDevice
public void close()
HardwareDevice
close
in interface HardwareDevice
public boolean isTouchSensorPressed(int channel)
isTouchSensorPressed
in interface TouchSensorMultiplexer
public int getSwitches()
getSwitches
in interface TouchSensorMultiplexer