Re: JESS: change facts in a loop or something simmilar

2006-02-03 Thread ejfried
I think Bogdan Werth wrote: > > what I want is somehow to call all the facts from the template above and > substract the amount in ?amount2eat from the slot amount. You just write a single rule that matches one fact that needs changing, plus any other facts that supply needed data, and do the

JESS: change facts in a loop or something simmilar

2006-02-02 Thread Bogdan Werth
Hello everybody, I am making an agent based model with RePast and Jess and I am a bit stuck with the following (maybe for just trivial) problem. I have 12 facts defined with (deftemplate stored (slot householdID) (slot amount) (slot age)) --> householdIDis the id of the household --> amount