org.jcsp.nxt.io
Class ActiveTouchSensor
java.lang.Object
org.jcsp.nxt.io.ActiveTouchSensor
- All Implemented Interfaces:
- lejos.nxt.SensorPortListener, CSProcess
public class ActiveTouchSensor
- extends java.lang.Object
- implements CSProcess, lejos.nxt.SensorPortListener
|
Method Summary |
void |
run()
This defines the actions of the process. |
void |
stateChanged(lejos.nxt.SensorPort p,
int oldVal,
int newVal)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outChannel
ChannelOutputInt outChannel
config
AltingChannelInputInt config
sensor
lejos.nxt.TouchSensor sensor
ACTIVATE
public static final int ACTIVATE
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
lastValueTransmitted
int lastValueTransmitted
pressed
int pressed
booleanMode
boolean booleanMode
running
boolean running
ActiveTouchSensor
public ActiveTouchSensor(lejos.nxt.SensorPort p,
ChannelOutputInt outChannel,
AltingChannelInputInt config)
stateChanged
public void stateChanged(lejos.nxt.SensorPort p,
int oldVal,
int newVal)
- Specified by:
stateChanged in interface lejos.nxt.SensorPortListener
run
public void run()
- Description copied from interface:
CSProcess
- This defines the actions of the process.
- Specified by:
run in interface CSProcess