|
12 | 12 | #include "PinList.h" |
13 | 13 | #include "RoomId.h" |
14 | 14 | #include "../utils/List.h" |
| 15 | +#include "../config/ActuatorId.h" |
15 | 16 | #include "../app/logic/baseio/equipment/RoomEquipment.h" |
16 | 17 | #include "../app/logic/baseio/TemperatureSensor.h" |
17 | 18 | #include "../app/io/environment/TemperatureHumiditySensor.h" |
|
20 | 21 | #include "../app/io/tracking/PersonTrackerImpl.h" |
21 | 22 | #include "../app/io/tracking/ImplantableMedicalDeviceTrackerImpl.h" |
22 | 23 | #include "../app/io/stretcher/StretcherPressureSensor.h" |
| 24 | +#include "../app/io/environment/CoolingModule.h" |
| 25 | +#include "../app/io/environment/HeatingModule.h" |
| 26 | +#include "../app/io/environment/VentilationSystem.h" |
23 | 27 | #include "../app/logic/baseio/HumiditySensor.h" |
24 | 28 | #include "../app/logic/baseio/PresenceSensor.h" |
25 | 29 | #include "../app/model/event/Event.h" |
|
30 | 34 | #include "../app/logic/fsm/peopletracking/PeopleTracking.h" |
31 | 35 | #include "../app/logic/fsm/oradvancedmonitoring/ORAdvancedMonitoring.h" |
32 | 36 | #include "../app/logic/fsm/commandlistener/CommandListener.h" |
| 37 | +#include "../app/logic/fsm/hvacsystem/HvacSystem.h" |
33 | 38 |
|
34 | 39 |
|
35 | 40 |
|
@@ -113,10 +118,32 @@ ORAdvancedMonitoringContext* getORAdvancedMonitoringContext(List<Event*>* eventL |
113 | 118 | }; |
114 | 119 | } |
115 | 120 |
|
116 | | -CommandListenerContext* getCommandListenerContext(DataProvider* dataProvider) { |
| 121 | +CommandListenerContext* getCommandListenerContext(DataProvider* dataProvider, Command** currentCommand) { |
117 | 122 | return new CommandListenerContext { |
118 | 123 | dataProvider, |
119 | | - nullptr |
| 124 | + currentCommand |
| 125 | + }; |
| 126 | +} |
| 127 | + |
| 128 | +HvacSystemContext* getHvacSystemContextOperatingRoom(List<Event*>* eventList, Command** currentCommand) { |
| 129 | + return new HvacSystemContext { |
| 130 | + eventList, |
| 131 | + currentCommand, |
| 132 | + Room(OPERATING_ROOM_ID), |
| 133 | + new VentilationSystem(VENTILATION_OR_ID, VENTILATION_OR_PIN), |
| 134 | + new HeatingModule(HEATING_OR_ID, HEATING_OR_PIN), |
| 135 | + new CoolingModule(COOLING_OR_ID, COOLING_OR_PIN) |
| 136 | + }; |
| 137 | +} |
| 138 | + |
| 139 | +HvacSystemContext* getHvacSystemContextPreOperatingRoom(List<Event*>* eventList, Command** currentCommand) { |
| 140 | + return new HvacSystemContext { |
| 141 | + eventList, |
| 142 | + currentCommand, |
| 143 | + Room(PRE_OPERATING_ROOM_ID), |
| 144 | + new VentilationSystem(VENTILATION_PRE_ID, VENTILATION_PRE_PIN), |
| 145 | + new HeatingModule(HEATING_PRE_ID, HEATING_PRE_PIN), |
| 146 | + new CoolingModule(COOLING_PRE_ID, COOLING_PRE_PIN) |
120 | 147 | }; |
121 | 148 | } |
122 | 149 |
|
|
0 commit comments