64c501271f1073cd52dab60e5508467cb1964ce6
[iot2.git] / benchmarks / Cpp / Lifxtest / LightBulbTest_Stub.hpp
1 #ifndef _LIGHTBULBTEST_STUB_HPP__
2 #define _LIGHTBULBTEST_STUB_HPP__
3 #include <iostream>
4 #include <thread>
5 #include <mutex>
6 #include <vector>
7 #include <set>
8 #include "IoTRMIComm.hpp"
9 #include "IoTRMICommClient.hpp"
10 #include "IoTRMICommServer.hpp"
11
12 #include "LightBulbTest.hpp"
13
14 using namespace std;
15
16 class LightBulbTest_Stub : public LightBulbTest
17 {
18         private:
19
20         IoTRMIComm *rmiComm;
21         int objectId = 1;
22         // Synchronization variables
23         bool retValueReceived6 = false;
24         bool retValueReceived3 = false;
25         bool retValueReceived8 = false;
26         bool retValueReceived7 = false;
27         bool retValueReceived9 = false;
28         
29
30         public:
31
32         LightBulbTest_Stub();
33         LightBulbTest_Stub(int _portSend, int _portRecv, const char* _skeletonAddress, int _rev, bool* _bResult);
34         LightBulbTest_Stub(IoTRMIComm* _rmiComm, int _objectId);
35         ~LightBulbTest_Stub();
36         void turnOn();
37         double getBrightness();
38         void turnOff();
39         bool getState();
40         void setColor(double _hue, double _saturation, double _brightness);
41         double getSaturation();
42         void init();
43         void setTemperature(int _temperature);
44         double getHue();
45         int getTemperature();
46 };
47 #endif