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

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

public final class TemperatureSampleData
extends AbstractSampleData

The temperature sensor device specific sample data, which is the temperature in degree celsius.

See Also:
TemperatureDevice, TemperatureDeviceScanner

Field Summary
private  float temperature
          The temperature in degree celsius
 
Constructor Summary
TemperatureSampleData()
          Constructor
TemperatureSampleData(TemperatureSampleData sampleData)
          Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 float getTemperature()
          Getter for the temperature
 void setTemperature(float temperature)
          Setter for the temperature
 
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

temperature

private float temperature
The temperature in degree celsius

Constructor Detail

TemperatureSampleData

public TemperatureSampleData()
Constructor


TemperatureSampleData

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

setTemperature

public final void setTemperature(float temperature)
Setter for the temperature

Parameters:
temperature - the temperature to set

getTemperature

public final float getTemperature()
Getter for the temperature

Returns:
the temperature