Skip to content

Commit ef4e7a3

Browse files
test: create test artifact to try operating block observer
1 parent f63446d commit ef4e7a3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/agt/testAgent.asl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
!observe.
10+
11+
+!observe
12+
<- ?obtainObserver(OperatingBlockObserverId);
13+
start [aid(OperatingBlockObserverId)];
14+
focus(OperatingBlockObserverId).
15+
16+
17+
// Obtain the operating block observer
18+
+?obtainObserver(OperatingBlockObserverId)
19+
<- lookupArtifact("operating_block_observer", OperatingBlockObserverId).
20+
21+
-?obtainObserver(OperatingBlockObserverId)
22+
<- makeArtifact("operating_block_observer", "artifact.environment.OperatingBlockObserverArtifact", [], OperatingBlockObserverId).
23+
24+
25+
{ include("$jacamoJar/templates/common-cartago.asl") }
26+
{ include("$jacamoJar/templates/common-moise.asl") }

0 commit comments

Comments
 (0)