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

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

public class PressureSampleData
extends AbstractSampleData

The pressure sensor device specific sample data, which is the atmospheric pressure in hPa (millibar).

See Also:
PressureDevice, PressureDeviceScanner

Field Summary
private  float pressure
          The atmospheric pressure in hPa
 
Constructor Summary
PressureSampleData()
          Constructor
PressureSampleData(PressureSampleData sampleData)
          Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 float getPressure()
          Getter for the pressure
 void setPressure(float pressure)
          Setter for the pressure
 
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

pressure

private float pressure
The atmospheric pressure in hPa

Constructor Detail

PressureSampleData

public PressureSampleData()
Constructor


PressureSampleData

public PressureSampleData(PressureSampleData 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

setPressure

public final void setPressure(float pressure)
Setter for the pressure

Parameters:
pressure - the pressure to set

getPressure

public final float getPressure()
Getter for the pressure

Returns:
the pressure