1:-include(library('ec_planner/ec_test_incl')). 2:-expects_dialect(pfc). 3 22
24:- set_ec_option(timediff, off). 25
26% load foundations/Root.e
27
28% load foundations/EC.e
29
30% sort agent
31==> sort(agent).
32
33% fluent Awake(agent)
34 % fluent(awake(agent)).
35==> mpred_prop(awake(agent),fluent).
36==> meta_argtypes(awake(agent)).
37
38% event WakeUp(agent)
39 % event(wakeUp(agent)).
40==> mpred_prop(wakeUp(agent),event).
41==> meta_argtypes(wakeUp(agent)).
42
43
46 47axiom(initiates(wakeUp(Agent), awake(Agent), Time),
48 []).
49
50% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:31
51% agent James
52% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:32
53==> t(agent,james).
54
55
58 59axiom(not(initially(awake(james))),
60 []).
61
64next_axiom_uses(delta).
65
66
67
70axiom(happens(wakeUp(james), t),
71 [is_time(0)]).
72
73% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:35
74% completion Delta Happens
75% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:36
76==> completion(delta).
77==> completion(happens).
78
79% range time 0 1
80% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:38
81==> range(time,0,1).
82
83% range offset 1 1
84% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/examples/Mueller2006/Chapter13/Deduction2.e:39
85==>