-
Notifications
You must be signed in to change notification settings - Fork 57
/
domain.pddl
59 lines (49 loc) · 1.54 KB
/
domain.pddl
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
(define (domain movie-strips)
(:predicates (movie-rewound)
(counter-at-two-hours)
(counter-at-other-than-two-hours)
(counter-at-zero)
(have-chips)
(have-dip)
(have-pop)
(have-cheese)
(have-crackers)
(chips ?x)
(dip ?x)
(pop ?x)
(cheese ?x)
(crackers ?x))
(:action rewind-movie-2
:parameters ()
:precondition (counter-at-two-hours)
:effect (movie-rewound))
(:action rewind-movie
:parameters ()
:precondition (counter-at-other-than-two-hours)
:effect (and (movie-rewound)
;; Let's assume that the movie is 2 hours long
(not (counter-at-zero))))
(:action reset-counter
:parameters ()
:effect (counter-at-zero))
;;; Get the food and snacks for the movie
(:action get-chips
:parameters (?x)
:precondition (chips ?x)
:effect (have-chips))
(:action get-dip
:parameters (?x)
:precondition (dip ?x)
:effect (have-dip))
(:action get-pop
:parameters (?x)
:precondition (pop ?x)
:effect (have-pop))
(:action get-cheese
:parameters (?x)
:precondition (cheese ?x)
:effect (have-cheese))
(:action get-crackers
:parameters (?x)
:precondition (crackers ?x)
:effect (have-crackers)))