SunSPOT API V5.0


com.sun.spot.sensorboard.io
Interface IScalarInputThresholdListener

All Known Implementing Classes:
BinaryScalar, LIS3L02AQAccelerometer

public interface IScalarInputThresholdListener

Implemented by classes wanting a call back when the scalar input value goes above or below specified thresholds.


Method Summary
 void thresholdChanged(IScalarInput in, int low, int high)
          Callback for when the scalar input thresholds are changed.
 void thresholdExceeded(IScalarInput in, int val)
          Callback for when the scalar input value goes above or below the specified thresholds.
 

Method Detail

thresholdExceeded

void thresholdExceeded(IScalarInput in,
                       int val)
Callback for when the scalar input value goes above or below the specified thresholds.

Parameters:
in - the IScalarInput that has crossed a threshold.
val - the current scalar input reading.

thresholdChanged

void thresholdChanged(IScalarInput in,
                      int low,
                      int high)
Callback for when the scalar input thresholds are changed.

Parameters:
in - the IScalarInput that had its threshold values changed.
low - the new scalar input low threshold value.
high - the new scalar input high threshold value.

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.