ch.aplu.ftcontroller
Class DistanceEvent

java.lang.Object
  extended by ch.aplu.ftcontroller.DistanceEvent

public class DistanceEvent
extends java.lang.Object

A class to retrieve event information when the DistanceListener callbacks are fired.


Method Summary
 int getDistance()
          Returns the current distance when the value changed.
 int getPort()
          Returns the port number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDistance

public int getDistance()
Returns the current distance when the value changed.

Returns:
the current distance (0..128 cm)

getPort

public int getPort()
Returns the port number.

Returns:
the port number (1 or 2)