JESS: Re: "Single-slot activations"

2003-08-28 Thread Jack Kerkhof
Hi all, Wow, a guy goes on vacation for the summer, and a lot of good stuff got generated on the list in the mean time...I'm still absorbing it, but would like to get my two cents worth in. Let me first of all put in my vote for this feature: I believe it will have very positive implications for

Re: JESS: "Single-slot activations"

2003-08-28 Thread ejfried
I think Orchard, Bob wrote: > I guess I was thinking that this was a runtime thing and not a > compile-time decision. The implementation I came up with is nice because many different features continue to work, but with the new semantics. In a nutshell, what happens is that for facts that can be t

Re: JESS: "Single-slot activations"

2003-08-28 Thread ejfried
I think Prof. Michael Stiber wrote: > > If you're taking votes, mine would lie almost always on the side of > keeping the language syntax simple. Please only add to the language > syntax if the alternative is truly gruesome. For example, is the "{}" > syntax better than just having a function t

RE: JESS: "Single-slot activations"

2003-08-28 Thread Orchard, Bob
Sorry about mixing the order in Alan's example and mine... this would have been confusing. > -Original Message- > As you note, the per-pattern syntax could be ugly. Maybe PATTERN-SLOT > patterns could be enclosed by square brackets instead of parentheses, > or something like that? We're no

Re: JESS: "Single-slot activations"

2003-08-28 Thread Prof. Michael Stiber
On Thursday, August 28, 2003, at 07:34 AM, [EMAIL PROTECTED] wrote: As you note, the per-pattern syntax could be ugly. Maybe PATTERN-SLOT patterns could be enclosed by square brackets instead of parentheses, or something like that? We're not actually constrained by traditional LISP syntax, and I'

JESS: Re: DAMLJessKB

2003-08-28 Thread Simone Ludwig
Hi Rosely,   The DAMLJessKB.java file provides a test program.   Regards, Simone - Original Message - From: rosely kumoi To: [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 2:08 PM Subject: JESS: DAMLJessKB hi all,   just asking if someone from the list

Re: JESS: "Single-slot activations"

2003-08-28 Thread ejfried
I think Orchard, Bob wrote: > > First the 'single' slot activation is a bit mis-leading to me. I would > prefer to see it labelled 'any' slot activation since any slot that > is modifed can cause an activation (actually a 'match' of the pattern and > not necessarily an activation -- rules are acti

JESS: PHP y JESS

2003-08-28 Thread Katia Murcia Castañeda
Hi!  I'm triying to conect PHP y jess.   I now how to conect php y java and I included the jess library on the top of my program.   But I can not load the "name.clp", I need to write all the instruccions in the "name.java".   I want to now how can I load the "name.clp" the instruccion (batch name.c

RE: JESS: "Single-slot activations"

2003-08-28 Thread Orchard, Bob
My 2 cents worth ... First the 'single' slot activation is a bit mis-leading to me. I would prefer to see it labelled 'any' slot activation since any slot that is modifed can cause an activation (actually a 'match' of the pattern and not necessarily an activation -- rules are activated). Following

JESS: Wish List

2003-08-28 Thread Rich Halsey
While this may sound like a whining session, I really do have a wish for the list: I would like to see JESS have an alternate language (JESS++) that is focused on the object-oriented nature of the Java language. I would assume that all the features of JESS could be incorporated into JESS++ without

Re: JESS: "Single-slot activations"

2003-08-28 Thread ejfried
I think Alan Moore wrote: > (defrule should-activate-when-object-exists >(other) >(not (MyObject)) > => > ) > > How would these patterns work? Since *no* slots are mentioned it isn't clear > what would happen. > Good question! This requires special handling, but it does indeed work. --

JESS: DAMLJessKB

2003-08-28 Thread rosely kumoi
hi all,   just asking if someone from the list has already use or try the DAMLJessKB. Already download it, but currently completely blind with the api, there is no sample code to be tried for testing.   rosely

Re: JESS: "Single-slot activations"

2003-08-28 Thread ejfried
I think Alan Moore wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > How about: > > (declare (activation SLOT|TEMPLATE)) > > or > > (declare (activate PER-SLOT|PER-TEMPLATE)) > > or something similar. > > I suggest that you don't use the boolean form because, in the future, you

RE: JESS: "Single-slot activations"

2003-08-28 Thread Alan Moore
Another question... Given patterns like: (defclass MyObject com.myco.MyObject (activate PER-SLOT)) (defrule does-this-match (MyObject) => ) (defrule should-activate-when-object-exists (other) (not (MyObject)) => ) How would these patterns work? Since *no* slots are mentioned it isn't

RE: JESS: "Single-slot activations"

2003-08-28 Thread Alan Moore
How about: (declare (activation SLOT|TEMPLATE)) or (declare (activate PER-SLOT|PER-TEMPLATE)) or something similar. I suggest that you don't use the boolean form because, in the future, you might decide to add another activation strategy: (declare (activation SLOT|TEMPLATE|KARMA)) Also, how

JESS: "Single-slot activations"

2003-08-28 Thread ejfried
Hi Folks, So I've got a partial implementation of this thing we've been calling "single-slot activations"; this is the Jess mode in which if a fact is matched by a rule, and some slot in that fact which is not explicitly mentioned in the rule's patterns is modified, the rule's activation state is