Adding config file for sharing.
[iot2.git] / benchmarks / Java / SmartLightsController / ColorTemperature.java
1 package SmartLightsController;
2
3 /** Class ColorTemperature to store the color and temperature data.
4  *
5  *
6  * @author      Ali Younis <ayounis @ uci.edu>
7  * @version     1.0
8  * @since       2016-01-27
9  */
10 public class ColorTemperature {
11
12         // As a percentage
13         public double hue;
14         public double saturation;
15         public double brightness;
16
17         // In Kelvin
18         public int temperature;
19
20         /** Constructor
21          */
22         public ColorTemperature() {
23                 this.hue = 0;
24                 this.saturation = 0;
25                 this.brightness = 0;
26                 this.temperature = 0;
27         }
28
29         /** Constructor
30          *
31          *   @param _hue         [double], Hue as a percentage.
32          *   @param _saturation  [double], Saturation as a percentage.
33          *   @param _brightness  [double], Brightness as a percentage.
34          *   @param _temperature [double], Temperature as kelvin.
35          *
36          */
37         public ColorTemperature(double _hue, double _saturation, double _brightness, int _temperature) {
38                 this.hue = _hue;
39                 this.saturation = _saturation;
40                 this.brightness = _brightness;
41                 this.temperature = _temperature;
42         }
43 }