Skip to content

Commit 4c02339

Browse files
chore: example of the usage of the configuration artifact
1 parent d5d6b06 commit 4c02339

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/agt/sample_agent.asl

+9
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@
1111
/* Initial goals */
1212

1313
!start.
14+
!loadConfig.
1415

1516
/* Plans */
1617

1718
+!start : true <- .print("hello world.").
1819

20+
+!loadConfig
21+
<- makeArtifact(configuration, "config.ConfigurationArtifact", [], ConfigurationId);
22+
focus(ConfigurationId);
23+
load.
24+
25+
+config(X)
26+
<- println(X).
27+
1928
{ include("$jacamoJar/templates/common-cartago.asl") }
2029
{ include("$jacamoJar/templates/common-moise.asl") }
2130

0 commit comments

Comments
 (0)