org.jcsp.nxt.io
Class ActiveTouchSensor

java.lang.Object
  extended by org.jcsp.nxt.io.ActiveTouchSensor
All Implemented Interfaces:
lejos.nxt.SensorPortListener, CSProcess

public class ActiveTouchSensor
extends java.lang.Object
implements CSProcess, lejos.nxt.SensorPortListener


Field Summary
static int ACTIVATE
           
static int BOOLEAN
           
(package private)  boolean booleanMode
           
(package private)  AltingChannelInputInt config
           
(package private)  int lastValueTransmitted
           
(package private)  ChannelOutputInt outChannel
           
(package private)  int pressed
           
(package private)  boolean running
           
(package private)  lejos.nxt.TouchSensor sensor
           
 
Constructor Summary
ActiveTouchSensor(lejos.nxt.SensorPort p, ChannelOutputInt outChannel, AltingChannelInputInt config)
           
 
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
 

Field Detail

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
Constructor Detail

ActiveTouchSensor

public ActiveTouchSensor(lejos.nxt.SensorPort p,
                         ChannelOutputInt outChannel,
                         AltingChannelInputInt config)
Method Detail

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