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

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

public final class MagneticFieldSampleData
extends AbstractSampleData

The magnetic filed sensor device specific sample data, which are the ambient magnetic fields in the X, Y and Z axis ( in micro-Tesla ).

See Also:
MagneticFieldDevice, MagneticFieldDeviceScanner

Field Summary
private  float magneticFieldX
          The ambient magnetic fields in the x axis
private  float magneticFieldY
          The ambient magnetic fields in the y axis
private  float magneticFieldZ
          The ambient magnetic fields in the z axis
 
Constructor Summary
MagneticFieldSampleData()
          Constructor
MagneticFieldSampleData(MagneticFieldSampleData sampleData)
          Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 float getMagneticFieldX()
          Getter for the ambient magnetic fields in the x axis
 float getMagneticFieldY()
          Getter for the ambient magnetic fields in the y axis
 float getMagneticFieldZ()
          Getter for the ambient magnetic fields in the z axis
 void setMagneticFieldX(float magneticFieldX)
          Setter for the ambient magnetic fields in the x axis
 void setMagneticFieldY(float magneticFieldY)
          Setter for the ambient magnetic fields in the y axis
 void setMagneticFieldZ(float magneticFieldZ)
          Setter for the ambient magnetic fields in 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

magneticFieldX

private float magneticFieldX
The ambient magnetic fields in the x axis


magneticFieldY

private float magneticFieldY
The ambient magnetic fields in the y axis


magneticFieldZ

private float magneticFieldZ
The ambient magnetic fields in the z axis

Constructor Detail

MagneticFieldSampleData

public MagneticFieldSampleData()
Constructor


MagneticFieldSampleData

public MagneticFieldSampleData(MagneticFieldSampleData sampleData)
Constructor

Parameters:
sampleData - the sample data to copy construct 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

getMagneticFieldX

public final float getMagneticFieldX()
Getter for the ambient magnetic fields in the x axis

Returns:
the ambient magnetic fields in the x axis

setMagneticFieldX

public final void setMagneticFieldX(float magneticFieldX)
Setter for the ambient magnetic fields in the x axis

Parameters:
magneticFieldX - the ambient magnetic fields in the x axis to set

getMagneticFieldY

public final float getMagneticFieldY()
Getter for the ambient magnetic fields in the y axis

Returns:
the ambient magnetic fields in the y axis

setMagneticFieldY

public final void setMagneticFieldY(float magneticFieldY)
Setter for the ambient magnetic fields in the y axis

Parameters:
magneticFieldY - the ambient magnetic fields in the y axis to set

getMagneticFieldZ

public final float getMagneticFieldZ()
Getter for the ambient magnetic fields in the z axis

Returns:
the ambient magnetic fields in the z axis

setMagneticFieldZ

public final void setMagneticFieldZ(float magneticFieldZ)
Setter for the ambient magnetic fields in the z axis

Parameters:
magneticFieldZ - the the ambient magnetic fields in the z axis to set