1:-include(library('ec_planner/ec_test_incl')). 2:-expects_dialect(pfc). 3 % loading(always,'includes/SaaSPatterns/RulesPatterns/ruleModel.e').
4
5
6% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:0
7%; prédéfinies
8
9% fluent F_RuleEffectPermitted(rule)
10 % fluent(f_ruleEffectPermitted(rule)).
11% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:2
12==> mpred_prop(f_ruleEffectPermitted(rule),fluent).
13==> meta_argtypes(f_ruleEffectPermitted(rule)).
14
15
16% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:2
17%; prédéfinies
18
19% fluent F_RuleEffectNOTpermitted(rule)
20 % fluent(f_ruleEffectNOTpermitted(rule)).
21% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:4
22==> mpred_prop(f_ruleEffectNOTpermitted(rule),fluent).
23==> meta_argtypes(f_ruleEffectNOTpermitted(rule)).
24
25% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:6
26% fluent F_RuleDenied(rule)
27 % fluent(f_ruleDenied(rule)).
28% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:7
29==> mpred_prop(f_ruleDenied(rule),fluent).
30==> meta_argtypes(f_ruleDenied(rule)).
31
32% fluent F_RulePermitted(rule)
33 % fluent(f_rulePermitted(rule)).
34% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:8
35==> mpred_prop(f_rulePermitted(rule),fluent).
36==> meta_argtypes(f_rulePermitted(rule)).
37
38% fluent F_RuleNotApplicable(rule)
39 % fluent(f_ruleNotApplicable(rule)).
40% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:9
41==> mpred_prop(f_ruleNotApplicable(rule),fluent).
42==> meta_argtypes(f_ruleNotApplicable(rule)).
43
44% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:12
45% event Epermit(rule)
46 % event(epermit(rule)).
47% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:13
48==> mpred_prop(epermit(rule),event).
49==> meta_argtypes(epermit(rule)).
50
51% event EDeny(rule)
52 % event(eDeny(rule)).
53% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:14
54==> mpred_prop(eDeny(rule),event).
55==> meta_argtypes(eDeny(rule)).
56
57% event ERuleDoesNotApply(rule)
58 % event(eRuleDoesNotApply(rule)).
59% From /opt/logicmoo_workspace/packs_sys/small_adventure_games/prolog/ec_planner/includes/SaaSPatterns/RulesPatterns/ruleModel.e:15
60==> mpred_prop(eRuleDoesNotApply(rule),event).
61==> meta_argtypes(eRuleDoesNotApply(rule)).
62
63
66 67axiom(initiates(eDeny(Rule), f_ruleDenied(Rule), Time),
68 []).
69
70
73 74axiom(initiates(epermit(Rule), f_rulePermitted(Rule), Time),
75 []).
76
77
80 81axiom(initiates(eRuleDoesNotApply(Rule), f_ruleNotApplicable(Rule), Time),
82 []).
83
84
87 91axiom(requires(eDeny(Rule), Time),
92
93 [ holds_at(f_targetHolds(Rule), Time),
94 holds_at(f_conditionSatisfied(Rule), Time),
95 holds_at(f_ruleEffectNOTpermitted(Rule), Time)
96 ]).
97
98
101 105axiom(requires(epermit(Rule), Time),
106
107 [ holds_at(f_targetHolds(Rule), Time),
108 holds_at(f_conditionSatisfied(Rule), Time),
109 holds_at(f_ruleEffectPermitted(Rule), Time)
110 ]).
111
112
115 116axiom(requires(eRuleDoesNotApply(Rule), Time),
117 [holds_at(f_targetDoesntHolds(Rule), Time)]).
118
119
122 123 124axiom(not(initially(f_rulePermitted(RulePermitted_Ret))),
125 []).
126
127
130 131 132axiom(not(initially(f_ruleDenied(RuleDenied_Ret))),
133 []).
134
135
138 139 140axiom(not(initially(f_ruleNotApplicable(RuleNotApplicable_Ret))),
141 []).
142
143
151 152 154 155