fixed bug: frame axiom only on true fluents
renamed modified by changed (more frequent naming)
This commit is contained in:
parent
0fb79d1268
commit
fcdb0b65c2
@ -23,10 +23,10 @@ stateVariable(Variable) :- headVariable(_,Variable).
|
||||
% Apply effects
|
||||
caused(Variable, Value, t) :- occurs(Action, t), postcondition(Action, Effect, Variable, Value),
|
||||
holds(Variable', Value', t - 1) : precondition(Effect, Variable', Value').
|
||||
modified(Variable, t) :- caused(Variable, Value, t).
|
||||
changed(Variable, t) :- caused(Variable, Value, t).
|
||||
|
||||
holds(Variable, Value, t) :- caused(Variable, Value, t).
|
||||
holds(Variable, Value, t) :- holds(Variable, Value, t - 1), not modified(Variable, t).
|
||||
holds(Variable, Value, t) :- holds(Variable, Value, t - 1), not changed(Variable, t), not stateVariable(Variable).
|
||||
|
||||
#program check(t). % t=0,1,...
|
||||
|
||||
|
Reference in New Issue
Block a user