|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.independent.AbstractSampleData
de.unikassel.android.sdcframework.data.independent.AccelerometerSampleData
public final class AccelerometerSampleData
The device specific sample data of an accelerometer sensor are the
accelerations in x, y and z ( in m/s^2 ) axis direction as provided by the
Android API.
Important:
the force of Gravity is not eliminated from the values. Thus, when the device
is laying on a table acceleration in z axis direction would be 9.81 m/s2.
SensorEvent.values
,
AccelerometerDevice
,
AccelerometerDeviceScanner
Field Summary | |
---|---|
private float |
accelerationX
The acceleration in x axis direction |
private float |
accelerationY
The acceleration in y axis direction |
private float |
accelerationZ
The acceleration in z axis direction |
Constructor Summary | |
---|---|
AccelerometerSampleData()
Constructor |
|
AccelerometerSampleData(AccelerometerSampleData sampleData)
Copy Constructor |
Method Summary | |
---|---|
SampleData |
doClone()
Method to clone sample data |
boolean |
equals(Object o)
|
float |
getAccelerationX()
Getter for the acceleration x direction |
float |
getAccelerationY()
Getter for the acceleration y direction |
float |
getAccelerationZ()
Getter for the acceleration z direction |
void |
setAccelerationX(float accelerationX)
Setter for the acceleration x direction |
void |
setAccelerationY(float accelerationY)
Setter for the acceleration y direction |
void |
setAccelerationZ(float accelerationZ)
Setter for the acceleration in z direction |
Methods inherited from class de.unikassel.android.sdcframework.data.independent.AbstractSampleData |
---|
clone, getRelatedData, toXML, updateRelatedData |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float accelerationX
private float accelerationY
private float accelerationZ
Constructor Detail |
---|
public AccelerometerSampleData()
public AccelerometerSampleData(AccelerometerSampleData sampleData)
sampleData
- the sample data to copy fromMethod Detail |
---|
public final SampleData doClone()
SampleData
public final boolean equals(Object o)
equals
in class Object
public final float getAccelerationX()
public final void setAccelerationX(float accelerationX)
accelerationX
- the acceleration x direction to setpublic final float getAccelerationY()
public final void setAccelerationY(float accelerationY)
accelerationY
- the acceleration y direction to setpublic final float getAccelerationZ()
public final void setAccelerationZ(float accelerationZ)
accelerationZ
- the acceleration z direction to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |