|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void thresholdExceeded(IScalarInput in, int val)
in
- the IScalarInput that has crossed a threshold.val
- the current scalar input reading.void thresholdChanged(IScalarInput in, int low, int high)
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 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |