de.unikassel.android.sdcframework.data.independent
Class GyroscopeSampleData

Package class diagram package GyroscopeSampleData
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.AbstractSampleData
      extended by de.unikassel.android.sdcframework.data.independent.GyroscopeSampleData
All Implemented Interfaces:
SampleData, SerializableData

public final class GyroscopeSampleData
extends AbstractSampleData

The device specific sample data of an gyroscope sensor are the rates of rotation around the device's local X, Y and Z axis ( in radians/second, positive in the counter-clockwise direction ) as provided by the Android API.

See Also:
SensorEvent.values, GyroscopeDevice, GyroscopeDeviceScanner

Field Summary
private  float angularSpeedX
          The angular rotation speed around the x axis
private  float angularSpeedY
          The angular rotation speed around the y axis
private  float angularSpeedZ
          The angular rotation speed around the z axis
 
Constructor Summary
GyroscopeSampleData()
          Constructor
GyroscopeSampleData(GyroscopeSampleData sampleData)
          Copy Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 float getAngularSpeedX()
          Getter for the angular speed around the x axis
 float getAngularSpeedY()
          Getter for the angular speed around the y axis
 float getAngularSpeedZ()
          Getter for the angular speed around the z axis
 void setAngularSpeedX(float angularSpeedX)
          Setter for the the angular speed around the x axis
 void setAngularSpeedY(float angularSpeedY)
          Setter for the angular speed around the y axis
 void setAngularSpeedZ(float angularSpeedZ)
          Setter for the angular speed around the z axis
 
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

angularSpeedX

private float angularSpeedX
The angular rotation speed around the x axis


angularSpeedY

private float angularSpeedY
The angular rotation speed around the y axis


angularSpeedZ

private float angularSpeedZ
The angular rotation speed around the z axis

Constructor Detail

GyroscopeSampleData

public GyroscopeSampleData()
Constructor


GyroscopeSampleData

public GyroscopeSampleData(GyroscopeSampleData sampleData)
Copy Constructor

Parameters:
sampleData - the sample data to copy from
Method Detail

doClone

public final SampleData doClone()
Description copied from interface: SampleData
Method to clone sample data

Returns:
a copy of the sample data

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

getAngularSpeedX

public final float getAngularSpeedX()
Getter for the angular speed around the x axis

Returns:
the angular speed around the x axis

setAngularSpeedX

public final void setAngularSpeedX(float angularSpeedX)
Setter for the the angular speed around the x axis

Parameters:
angularSpeedX - the angular speed around the x axis to set

getAngularSpeedY

public final float getAngularSpeedY()
Getter for the angular speed around the y axis

Returns:
the angular speed around the y axis

setAngularSpeedY

public final void setAngularSpeedY(float angularSpeedY)
Setter for the angular speed around the y axis

Parameters:
angularSpeedY - the angular speed around the y axis to set

getAngularSpeedZ

public final float getAngularSpeedZ()
Getter for the angular speed around the z axis

Returns:
the angular speed around the z axis

setAngularSpeedZ

public final void setAngularSpeedZ(float angularSpeedZ)
Setter for the angular speed around the z axis

Parameters:
angularSpeedZ - the angular speed around the z axis to set