Skip to content

Commit 37e1b4e

Browse files
chore: base for director agent to react to request by powerSaver agent for the standby mode
1 parent b0eaba7 commit 37e1b4e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/agt/director.asl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
*/
1313

1414
!loadConfig.
15+
!checkPrePostOperatingRoomStandbyProposals.
16+
!checkOperatingRoomStandbyProposals.
17+
!checkStandbyEnd.
1518

1619
+!loadConfig
1720
<- makeArtifact(configuration, "artifact.config.ConfigurationArtifact", [], ConfigurationId);
@@ -39,5 +42,26 @@
3942
+medicalTechnologyScenario(MT, AL, SL)
4043
<- .send(medicalTechnologySupporter, tell, scenario(MT, AL, SL)).
4144

45+
46+
// Check standby proposals for pre/post operating room
47+
+!checkPrePostOperatingRoomStandbyProposals
48+
<- in(requestStandby, RoomId, Temperature, Humidity, AmbientLight);
49+
.println(requestedPre);
50+
.println(RoomId);
51+
!!checkPrePostOperatingRoomStandbyProposals.
52+
53+
// Check standby proposals for operating room
54+
+!checkOperatingRoomStandbyProposals
55+
<- in(requestStandby, RoomId, Temperature, Humidity, AmbientLight, SurgicalLight);
56+
.println(requestedOp);
57+
.println(RoomId);
58+
!!checkOperatingRoomStandbyProposals.
59+
60+
+!checkStandbyEnd
61+
<- in(stopStandby, RoomId);
62+
.println(stopStandby);
63+
.println(RoomId);
64+
!!checkStandbyEnd.
65+
4266
{ include("$jacamoJar/templates/common-cartago.asl") }
4367
{ include("$jacamoJar/templates/common-moise.asl") }

0 commit comments

Comments
 (0)