1 | <DomainActions>
|
---|
2 | <Action name="Open([target])">
|
---|
3 | <PreConditions>
|
---|
4 | <Predicate name="[target](OnTable)"/>
|
---|
5 | <Predicate name="[AGENT](isPerson)"/>
|
---|
6 | <Property name="[AGENT]" operator="!=" value="SELF" />
|
---|
7 | <Predicate name="!Contains([target],candy)"/>
|
---|
8 | <Predicate ToM="[AGENT]" name="Contains([target],coin)"/>
|
---|
9 | </PreConditions>
|
---|
10 | <Effects>
|
---|
11 | <Effect probability="1.0">
|
---|
12 | <Predicate name="SELF(has,coin)"/>
|
---|
13 | </Effect>
|
---|
14 | <Effect probability="1.0">
|
---|
15 | <Predicate name="!BoxB(Contains,coin)"/>
|
---|
16 | </Effect>
|
---|
17 | <Effect probability="1.0">
|
---|
18 | <Predicate name="!BoxA(Contains,coin)"/>
|
---|
19 | </Effect>
|
---|
20 | </Effects>
|
---|
21 | <EffectsOnDrives>
|
---|
22 | </EffectsOnDrives>
|
---|
23 | </Action>
|
---|
24 | <Action name="Put([x],[box])">
|
---|
25 | <PreConditions>
|
---|
26 | <Predicate name="[box](OnTable)"/>
|
---|
27 | </PreConditions>
|
---|
28 | <Effects>
|
---|
29 | <Effect probability="1.0">
|
---|
30 | <Predicate name="[box](Contains,[x])"/>
|
---|
31 | </Effect>
|
---|
32 | </Effects>
|
---|
33 | <EffectsOnDrives>
|
---|
34 | </EffectsOnDrives>
|
---|
35 | </Action>
|
---|
36 | <Action name="PutHidden([x],[boxA],[boxB])">
|
---|
37 | <PreConditions>
|
---|
38 | <Property name="[boxA](type)" operator="=" value="Box"/>
|
---|
39 | <Property name="[boxB](type)" operator="=" value="Box"/>
|
---|
40 | <Property name="[boxA]" operator="!=" value="[boxB]"/>
|
---|
41 | <Predicate name="[AGENT](has,[boxA])"/>
|
---|
42 | <Predicate name="[AGENT](has,[boxB])"/>
|
---|
43 | </PreConditions>
|
---|
44 | <Effects>
|
---|
45 | <Effect probability="1.0">
|
---|
46 | <Predicate ToM="[AGENT]" name="[boxA](Contains,coin)"/>
|
---|
47 | </Effect>
|
---|
48 | <Effect probability="1.0">
|
---|
49 | <Predicate ToM="*" name="!SELF(has,coin)"/>
|
---|
50 | </Effect>
|
---|
51 | <Effect probability="1.0">
|
---|
52 | <Predicate ToM="*" name="!User(has,coin)"/>
|
---|
53 | </Effect>
|
---|
54 | </Effects>
|
---|
55 | <EffectsOnDrives>
|
---|
56 | </EffectsOnDrives>
|
---|
57 | </Action>
|
---|
58 | <Action name="TakeFromTable([x])">
|
---|
59 | <PreConditions>
|
---|
60 | <Predicate name="[x](OnTable)"/>
|
---|
61 | <Property name="[x](type)" operator="=" value="Box"/>
|
---|
62 | </PreConditions>
|
---|
63 | <Effects>
|
---|
64 | <Effect probability="1.0">
|
---|
65 | <Predicate name="[AGENT](has,[x])"/>
|
---|
66 | <Predicate name="" />
|
---|
67 | </Effect>
|
---|
68 | </Effects>
|
---|
69 | <EffectsOnDrives>
|
---|
70 | </EffectsOnDrives>
|
---|
71 | </Action>
|
---|
72 | <Action name="PutOnTable([x])">
|
---|
73 | <PreConditions>
|
---|
74 | <Predicate name="[AGENT](has,[x])"/>
|
---|
75 | <Property name="[x](type)" operator="=" value="Box"/>
|
---|
76 | </PreConditions>
|
---|
77 | <Effects>
|
---|
78 | <Effect probability="1.0">
|
---|
79 | <Predicate name=""/>
|
---|
80 | <Predicate name="[x](OnTable)" />
|
---|
81 | </Effect>
|
---|
82 | </Effects>
|
---|
83 | <EffectsOnDrives>
|
---|
84 | </EffectsOnDrives>
|
---|
85 | </Action>
|
---|
86 | </DomainActions>
|
---|