forked from melahi/pddl-instances
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.pddl
61 lines (48 loc) · 1.52 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
60
61
(define (domain zeno-travel)
(:requirements :typing)
(:types aircraft person city flevel - object)
(:predicates (at ?x - (either person aircraft) ?c - city)
(in ?p - person ?a - aircraft)
(fuel-level ?a - aircraft ?l - flevel)
(next ?l1 ?l2 - flevel))
(:action board
:parameters (?p - person ?a - aircraft ?c - city)
:precondition (and (at ?p ?c)
(at ?a ?c))
:effect (and (not (at ?p ?c))
(in ?p ?a)))
(:action debark
:parameters (?p - person ?a - aircraft ?c - city)
:precondition (and (in ?p ?a)
(at ?a ?c))
:effect (and (not (in ?p ?a))
(at ?p ?c)))
(:action fly
:parameters (?a - aircraft ?c1 ?c2 - city ?l1 ?l2 - flevel)
:precondition (and (at ?a ?c1)
(fuel-level ?a ?l1)
(next ?l2 ?l1))
:effect (and (not (at ?a ?c1))
(at ?a ?c2)
(not (fuel-level ?a ?l1))
(fuel-level ?a ?l2)))
(:action zoom
:parameters (?a - aircraft ?c1 ?c2 - city ?l1 ?l2 ?l3 - flevel)
:precondition (and (at ?a ?c1)
(fuel-level ?a ?l1)
(next ?l2 ?l1)
(next ?l3 ?l2)
)
:effect (and (not (at ?a ?c1))
(at ?a ?c2)
(not (fuel-level ?a ?l1))
(fuel-level ?a ?l3)
)
)
(:action refuel
:parameters (?a - aircraft ?c - city ?l - flevel ?l1 - flevel)
:precondition (and (fuel-level ?a ?l)
(next ?l ?l1)
(at ?a ?c))
:effect (and (fuel-level ?a ?l1) (not (fuel-level ?a ?l))))
)