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

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

public final class LightSampleData
extends AbstractSampleData

The light sensor device specific sample data, which is the ambient light level in SI lux units.

ATTENTON:
There do exist simple binary sensor types which do only support bright and dark measurement. In such a case, just two values will be set: a large value for the bright state and a lower one for the dark state.

See Also:
LightDevice, LightDeviceScanner

Field Summary
private  float lightLevel
          The ambient light level in SI lux unit
 
Constructor Summary
LightSampleData()
          Constructor
LightSampleData(LightSampleData sampleData)
          Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 float getLightLevel()
          Getter for the ambient light level
 void setLightLevel(float lightLevel)
          Setter for the ambient light level
 
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

lightLevel

private float lightLevel
The ambient light level in SI lux unit

Constructor Detail

LightSampleData

public LightSampleData()
Constructor


LightSampleData

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

setLightLevel

public final void setLightLevel(float lightLevel)
Setter for the ambient light level

Parameters:
lightLevel - the ambient light level

getLightLevel

public final float getLightLevel()
Getter for the ambient light level

Returns:
the ambient light level