forked from panda-planner-dev/ipc2020-domains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genericLinearProblem_depth01.hddl
54 lines (51 loc) · 1.46 KB
/
genericLinearProblem_depth01.hddl
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
(define(problem generischesLinearesVerkabelungsproblemTiefe1)
(:domain verkabelung)
(:objects
;; Available Types
plugType1 - PlugType
data - SignalType
;; Cables
cableWithPlugType1 - Cable
;; Devices
pc printer - Device
;; Cable - Ports
cableWithPlugType1-a - Port
cableWithPlugType1-b - Port
;; Device - Ports
printer-aPlugType1 pc-bPlugType1 - Port
)
(:htn
:tasks
(and
(ConnectDevices pc printer data)
)
)
(:init
;; PC
(isPartOf pc-bPlugType1 pc)
(isPlugType pc-bPlugType1 plugType1)
(isPlugFace pc-bPlugType1 female)
(isPlugDirection pc-bPlugType1 out)
(isSignalSource pc-bPlugType1 data)
;; Printer
(isPartOf printer-aPlugType1 printer)
(isPlugType printer-aPlugType1 plugType1)
(isPlugFace printer-aPlugType1 female)
(isPlugDirection printer-aPlugType1 in)
(isSignalDestination printer-aPlugType1 data)
;; Cable 1
(isPartOf cableWithPlugType1-a cableWithPlugType1)
(isPartOf cableWithPlugType1-b cableWithPlugType1)
(isPlugType cableWithPlugType1-a plugType1)
(isPlugType cableWithPlugType1-b plugType1)
(isPlugFace cableWithPlugType1-a male)
(isPlugFace cableWithPlugType1-b male)
(isPlugDirection cableWithPlugType1-a both)
(isPlugDirection cableWithPlugType1-b both)
(isSignalRepeater cableWithPlugType1-a cableWithPlugType1-b data)
(isSignalRepeater cableWithPlugType1-b cableWithPlugType1-a data)
)
(:goal
(pAim)
)
)