-
Notifications
You must be signed in to change notification settings - Fork 2
/
Domain-Ext3.pddl
45 lines (38 loc) · 1.37 KB
/
Domain-Ext3.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
(define (domain plannerExt3)
(:requirements :adl :typing )
(:types content - item
day - item
)
(:functions
(dayCapacity)
(dayOrder ?d - day)
(dayAssigned ?d - day)
)
(:predicates
(seen ?c - content)
(predecessor ?c1 - content ?c2 - content)
(parallel ?c1 - content ?c2 - content)
(allPreSeen ?c - content)
(allParSeen ?c - content)
)
(:action watch
:parameters (?c - content ?d - day)
:precondition (and (> (dayCapacity) (dayAssigned ?d))
(forall (?d2 - day) (imply (< (dayOrder ?d2) (dayOrder ?d)) (= (dayAssigned ?d2) (dayCapacity))) )
(allPreSeen ?c)
(forall (?c2 - content) (imply(parallel ?c ?c2) (allPreSeen ?c2)) )
(forall (?c2 - content) (imply(predecessor ?c2 ?c) (allParSeen ?c2)) )
)
:effect (and (seen ?c) (increase (dayAssigned ?d) 1))
)
(:action setAllPreSeen
:parameters (?c - content)
:precondition (forall (?c2 - content) (imply (predecessor ?c2 ?c) (seen ?c2)) )
:effect (allPreSeen ?c)
)
(:action setAllParSeen
:parameters (?c - content)
:precondition (forall (?c2 - content) (imply (parallel ?c2 ?c) (seen ?c2)) )
:effect (allParSeen ?c)
)
)