public static class AccelerometerMma8452q.Movement
extends java.lang.Object
| Constructor and Description |
|---|
Movement(boolean[] thresholds,
Sign[] polarities)
Create a Movement object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
exceedsThreshold(CartesianAxis axis)
Check if acceleration is greater than the threshold on that axis
|
int |
hashCode() |
Sign |
polarity(CartesianAxis axis)
Check the polarity (directional) information of the axis
|
java.lang.String |
toString() |
public Movement(boolean[] thresholds,
Sign[] polarities)
thresholds - Threshold information for XYZ axis in that orderpolarities - Directional information for XYZ axes in that orderpublic java.lang.Boolean exceedsThreshold(CartesianAxis axis)
axis - Axis to lookuppublic Sign polarity(CartesianAxis axis)
axis - Axis to lookupSign.POSITIVE if event was positive g, Sign.NEGATIVE if negative gpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object