ch.aplu.nxt
Class PrototypeAdapter

java.lang.Object
  extended by ch.aplu.nxt.PrototypeAdapter
All Implemented Interfaces:
PrototypeListener

public class PrototypeAdapter
extends java.lang.Object
implements PrototypeListener

Class with empty callback methods for the prototype sensor.


Constructor Summary
PrototypeAdapter()
           
 
Method Summary
 void ainChanged(SensorPort port, int[] values)
          Empty method called when at least one of the 5 analog inputs changed its value.
 void dinChanged(SensorPort port, int[] values)
          Empty method called when at least one of the digital inputs changed its value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrototypeAdapter

public PrototypeAdapter()
Method Detail

ainChanged

public void ainChanged(SensorPort port,
                       int[] values)
Empty method called when at least one of the 5 analog inputs changed its value. Override it to process the event.

Specified by:
ainChanged in interface PrototypeListener
Parameters:
port - the port where the sensor is plugged in
values - the value of the analog input channels: 0..1023 or -1 if unchanged

dinChanged

public void dinChanged(SensorPort port,
                       int[] values)
Empty method called when at least one of the digital inputs changed its value. Override it to process the event.

Specified by:
dinChanged in interface PrototypeListener
Parameters:
port - the port where the sensor is plugged in
values - the value of the 6 digital channels: 0, 1 or -1 if unchanged or not an input