public class TouchSensor extends Input
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SWITCH
Default value.
|
| Constructor and Description |
|---|
TouchSensor(ControlLabInterface controllab,
InputPortEnum port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSensibilityIn() |
int |
getSensibilityOut() |
SensorTypeEnum |
getSensorType()
Return the type of sensor.
|
boolean |
isPressed() |
boolean |
isReleased() |
void |
setSensibilityIn(int sensibilityIn) |
void |
setSensibilityOut(int sensibilityOut) |
addSensorListener, getPort, getSensorListeners, getStatus, getValue, removeSensorListener, setStatus, setValuegetControlLab, setControlLabprotected static final int SWITCH
public TouchSensor(ControlLabInterface controllab, InputPortEnum port)
controllab - control labport - portpublic SensorTypeEnum getSensorType()
getSensorType in class Inputpublic final boolean isPressed()
public final boolean isReleased()
public final int getSensibilityIn()
public final void setSensibilityIn(int sensibilityIn)
sensibilityIn - the sensibilityIn to setpublic final int getSensibilityOut()
public final void setSensibilityOut(int sensibilityOut)
sensibilityOut - the sensibilityOut to setCopyright © 2018. All rights reserved.