File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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" ) }
You can’t perform that action at this time.
0 commit comments