Skip to content

Commit f72f4c6

Browse files
chore: observe environment in medical technology supporter agent
1 parent 66a302d commit f72f4c6

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
/*
10+
* The agent is responsible to handle the automation scenarios that support the usage
11+
* of medical technologies inside the operating rooms.
12+
*/
13+
14+
!observeOperatingBlock.
15+
16+
+!observeOperatingBlock
17+
<- ?obtainObserver(OperatingBlockObserverId);
18+
start [aid(OperatingBlockObserverId)];
19+
focus(OperatingBlockObserverId).
20+
21+
+medicalTechnologyUsage(Type, Value, RoomId)
22+
<- .println(Type);
23+
.println(Value);
24+
.println(RoomId).
25+
26+
// Obtain the operating block observer
27+
+?obtainObserver(OperatingBlockObserverId)
28+
<- lookupArtifact("operating_block_observer", OperatingBlockObserverId).
29+
30+
// If the operating block observer artifact is not found in the workspace, then create it
31+
-?obtainObserver(OperatingBlockObserverId)
32+
<- .wait(100);
33+
?obtainObserver(OperatingBlockObserverId).
34+
35+
36+
{ include("$jacamoJar/templates/common-cartago.asl") }
37+
{ include("$jacamoJar/templates/common-moise.asl") }

0 commit comments

Comments
 (0)