Re: JESS: One last newbie question for today

2004-05-18 Thread ejfried
I think Simon Harris wrote: > In a multi-threaded environment, I don't wish to share "context" between > threads but I do wish to share "rules". > > So, a) is a new Rete object required for each thread or just a new > Context?; and; > A Context is basically like a stack frame; all the Rete n

JESS: One last newbie question for today

2004-05-18 Thread Simon Harris
In a multi-threaded environment, I don't wish to share "context" between threads but I do wish to share "rules". So, a) is a new Rete object required for each thread or just a new Context?; and; b) Can Rete objects be re-used by clearing out all the facts or is the idea to just create anoth

Re: JESS: Question of style?

2004-05-18 Thread Simon Harris
Thanks. After I replied I realised that defining an "ad-hoc" template was just as possible. Doh! Thanks again, Simon On Tue, 18 May 2004 15:02:45 -0700 (PDT), <[EMAIL PROTECTED]> wrote: I think Simon Harris wrote: Is that for performans reasons or primarily understandability? I'm building an app

Re: JESS: Question of style?

2004-05-18 Thread ejfried
I think Simon Harris wrote: > Is that for performans reasons or primarily understandability? > > I'm building an app where the Java code constructs a very simple domain > model that is asserted as a set of facts. The end user is then able to > write ad-hoc rules, infering relationships that th

Re: JESS: Question of style?

2004-05-18 Thread Simon Harris
Is that for performans reasons or primarily understandability? I'm building an app where the Java code constructs a very simple domain model that is asserted as a set of facts. The end user is then able to write ad-hoc rules, infering relationships that the app could never know in advance. O

Re: JESS: Question of style?

2004-05-18 Thread ejfried
I think Simon Harris wrote: > As a general rule (pardon the pun), what would you consider "better" form: > Always prefer unordered facts (those for which you defune an explicit deftemplate) over ordered ones. They will always be much more efficient, and code that uses them is generally easier to

JESS: Question of style?

2004-05-18 Thread Simon Harris
As a general rule (pardon the pun), what would you consider "better" form: (deftemplate bundle (slot name)) (deftemplate report (slot name) (slot bundle)) (bind ?b (assert (bundle (name "b" (bind ?r (assert (report (name "r") (bundle ?b OR (bind ?b (assert (bundle "b"))) (bind ?r (assert (r

JESS: jess with jade and protege

2004-05-18 Thread MAtt Farmer
Hey,   Has anybody used Jess with Protege and Jade. I mean I am using Jade to create beans out of the ontology classes that I have defined in Protege, so I can use them with Jess. The problem is, all I am getting is a ontology.java class, not the bean classes that I  had hoped. Can anybody throw so