Re: JESS: Error with initial-fact and logical

2004-05-24 Thread ejfried
I think Steffen Luypaert wrote: > Message: Bad index 7 in call to get() on this vector: (MAIN::initial- > fact). > > I am not 100% sure the (logical (initial-fact) .. causes this, but it > started happening when i added those. And I cant find any other reason. > It's very unlikely that it's t

Re: JESS: More best practices

2004-05-24 Thread ejfried
I think Simon Harris wrote: > I've quite a bit of experience using JRules but I've recently chosen to > use JESS as it seems more natural and flexible in many ways. Welcome! > > (deftemplate manages (slot manager) (slot employee)) This is sort of Java-like. > (deftemplate manager

JESS: More best practices

2004-05-24 Thread Simon Harris
I've quite a bit of experience using JRules but I've recently chosen to use JESS as it seems more natural and flexible in many ways. The big difference for me is both a blessing and a curse. In JRules EVERYTHING is a Java class so facts are typically modelled with embedded relationships. Ie

JESS: Error with initial-fact and logical

2004-05-24 Thread Steffen Luypaert
Hi again, I have the following problem with the combination of the logical CE and backward chaining by using rules like: (do-backward-chaining answer) (defrule bwc-example (logical (initial-fact) (foo (id ?id))) => (assert (something)) Backward chaining occurs for the foo (shadow)fact

Re: JESS: Jess and Planning

2004-05-24 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > Does it make sense to implement a simple planner with Jess? A quick google for "Jess planner" turns up evidence that it's been done several times before: see http://www.cs.umbc.edu/~mariedj/papers/icaps-ws03.pdf and http://www.cs.ucsb.edu/conferences/PUI

JESS: Jess and Planning

2004-05-24 Thread abramson
Does it make sense to implement a simple planner with Jess? I'm thinking of a plan template as such: (deftemplate plantemplate (multislot preconditions) (multislot postconditions)) But then how to generate the defrules automatically to match the preconditions? Thanks for any ideas,