Cleaning up drivers/Cpp, Cpp/Lifxtest, virtuals, and iotrmi/C++ (revisiting the C...
[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 <fstream>
9 #include "IoTRMIComm.hpp"
10 #include "IoTRMICommClient.hpp"
11 #include "IoTRMICommServer.hpp"
12
13 #include "LightBulbTest.hpp"
14
15 using namespace std;
16
17 class LightBulbTest_Stub : public LightBulbTest
18 {
19         private:
20
21         IoTRMIComm *rmiComm;
22         int objectId = 1;
23         // Synchronization variables
24         bool retValueReceived6 = false;
25         bool retValueReceived3 = false;
26         bool retValueReceived8 = false;
27         bool retValueReceived7 = false;
28         bool retValueReceived9 = false;
29         ofstream log;
30
31         public:
32
33         LightBulbTest_Stub();
34         LightBulbTest_Stub(int _portSend, int _portRecv, const char* _skeletonAddress, int _rev, bool* _bResult);
35         LightBulbTest_Stub(IoTRMIComm* _rmiComm, int _objectId);
36         ~LightBulbTest_Stub();
37         void turnOn();
38         double getBrightness();
39         void turnOff();
40         bool getState();
41         void setColor(double _hue, double _saturation, double _brightness);
42         double getSaturation();
43         void init();
44         void setTemperature(int _temperature);
45         double getHue();
46         int getTemperature();
47 };
48 #endif