-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcalendar_manager.asl
25 lines (19 loc) · 1.01 KB
/
calendar_manager.asl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// calendar manager agent
/* Initial beliefs */
// The agent has a belief about the location of the W3C Web of Thing (WoT) Thing Description (TD)
// that describes a Thing of type https://was-course.interactions.ics.unisg.ch/wake-up-ontology#CalendarService (was:CalendarService)
td("https://was-course.interactions.ics.unisg.ch/wake-up-ontology#CalendarService", "https://raw.githubusercontent.com/Interactions-HSG/example-tds/was/tds/calendar-service.ttl").
/* Initial goals */
// The agent has the goal to start
!start.
/*
* Plan for reacting to the addition of the goal !start
* Triggering event: addition of goal !start
* Context: the agents believes that a WoT TD of a was:CalendarService is located at Url
* Body: greets the user
*/
@start_plan
+!start : td("https://was-course.interactions.ics.unisg.ch/wake-up-ontology#CalendarService", Url) <-
.print("Hello world").
/* Import behavior of agents that work in CArtAgO environments */
{ include("$jacamoJar/templates/common-cartago.asl") }