25
25
#include "../app/io/environment/HeatingModule.h"
26
26
#include "../app/io/environment/VentilationSystem.h"
27
27
#include "../app/io/environment/LightImpl.h"
28
+ #include "../app/io/environment/SurgicalLightImpl.h"
28
29
#include "../app/logic/baseio/HumiditySensor.h"
29
30
#include "../app/logic/baseio/PresenceSensor.h"
30
31
#include "../app/model/event/Event.h"
37
38
#include "../app/logic/fsm/commandlistener/CommandListener.h"
38
39
#include "../app/logic/fsm/hvacsystem/HvacSystem.h"
39
40
#include "../app/logic/fsm/ambientlightsystem/AmbientLightSystem.h"
41
+ #include "../app/logic/fsm/orsurgicalightsystem/ORSurgicalLightSystem.h"
40
42
41
43
42
44
@@ -149,7 +151,7 @@ HvacSystemContext* getHvacSystemContextPreOperatingRoom(List<Event*>* eventList,
149
151
};
150
152
}
151
153
152
- AmbientLightSystemContext * getAmbientLightContextOperatingRoom (List < Event * > * eventList , Command * * currentCommand ) {
154
+ AmbientLightSystemContext * getAmbientLightSystemContextOperatingRoom (List < Event * > * eventList , Command * * currentCommand ) {
153
155
return new AmbientLightSystemContext {
154
156
eventList ,
155
157
currentCommand ,
@@ -158,7 +160,7 @@ AmbientLightSystemContext* getAmbientLightContextOperatingRoom(List<Event*>* eve
158
160
};
159
161
}
160
162
161
- AmbientLightSystemContext * getAmbientLightContextPreOperatingRoom (List < Event * > * eventList , Command * * currentCommand ) {
163
+ AmbientLightSystemContext * getAmbientLightSystemContextPreOperatingRoom (List < Event * > * eventList , Command * * currentCommand ) {
162
164
return new AmbientLightSystemContext {
163
165
eventList ,
164
166
currentCommand ,
@@ -167,4 +169,13 @@ AmbientLightSystemContext* getAmbientLightContextPreOperatingRoom(List<Event*>*
167
169
};
168
170
}
169
171
172
+ ORSurgicalLightSystemContext * getORSurgicalLightSystemContext (List < Event * > * eventList , Command * * currentCommand ) {
173
+ return new ORSurgicalLightSystemContext {
174
+ eventList ,
175
+ currentCommand ,
176
+ Room (OPERATING_ROOM_ID ),
177
+ new SurgicalLightImpl (SURGICAL_LIGHT_ID , SURGICAL_LIGHT_PIN )
178
+ };
179
+ }
180
+
170
181
#endif
0 commit comments