-
Notifications
You must be signed in to change notification settings - Fork 6
/
blinds_controller.asl
28 lines (21 loc) · 1.04 KB
/
blinds_controller.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
26
27
28
// blinds controller 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#Blinds (was:Blinds)
td("https://was-course.interactions.ics.unisg.ch/wake-up-ontology#Blinds", "https://raw.githubusercontent.com/Interactions-HSG/example-tds/was/tds/blinds.ttl").
// the agent initially believes that the blinds are "lowered"
blinds("lowered").
/* 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:Blinds is located at Url
* Body: greets the user
*/
@start_plan
+!start : td("https://was-course.interactions.ics.unisg.ch/wake-up-ontology#Blinds", Url) <-
.print("Hello world").
/* Import behavior of agents that work in CArtAgO environments */
{ include("$jacamoJar/templates/common-cartago.asl") }