JESS: backward compatibility issue with Eclipse in Jess 7.0b4

2005-11-03 Thread Scott Moss
I have found that if I replace an earlier Jess7.0b[2-3] with the 7.0b4 jar in the jre/lib/ext folder, then Eclipse uses the new version and programs run fine from Eclipse and also from command line. If I then install the new Jess plugin and features folders for Eclipse, then running the same

Re: JESS: multiple shadow fact templates

2005-11-03 Thread Scott Moss
The order in which rules fire is obviously irrelevant if that order does not affect the behaviour of the program. I discovered that the order in which rules are defined affects program behaviour because I was unknowingly trying to assert the same working memory element twice. This I now

Re: JESS: backward compatibility issue with Eclipse in Jess 7.0b4

2005-11-03 Thread Scott Moss
Ignore the last email, please. I forgot to start from command line with the -clean switch. Scott Moss wrote: I have found that if I replace an earlier Jess7.0b[2-3] with the 7.0b4 jar in the jre/lib/ext folder, then Eclipse uses the new version and programs run fine from Eclipse and also

JESS: String to Symbol

2005-11-03 Thread bobillo
This might be a simple question but I have not been able to find the solution by myself. I need to assert some ordered facts dynamically and I have to assess the head of the list by concatenating two strings. The Java concat function returns a string value, but the Jess assert function needs its

JESS: Understanding JESS

2005-11-03 Thread Daniela CLARO
Hi everybody, I am a new user of JESS and I am coming from Prolog's world, so I have some misunderstanding using Jess. First of all, I am trying to create a plan that I will have 3 actions: travel, hotel and rentalCar. As I have some preconditions that must be valid in order to execute an

Re: JESS: String to Symbol

2005-11-03 Thread ejfried
I think [EMAIL PROTECTED] wrote: How can I convert a string into a symbol? In Java, String string = whatever; Value symbol = new Value(string, RU.SYMBOL); In Jess, (bind ?string whatever) (bind ?symbol (sym-cat ?string)) -

Re: JESS: String to Symbol

2005-11-03 Thread bobillo
I am sorry, I should have been more detailed. What I want to do is somethink like this: (bind ?string (call string1 concat string2)) (bind ?symbol (sym-cat ?string)) (assert ?symbol 10) This code does not work because the first argument of the assert function is expected to be a symbol, and not

Re: JESS: String to Symbol

2005-11-03 Thread Henrique Lopes Cardoso
How about: (bind ?string (call string1 concat string2)) (bind ?symbol (sym-cat ?string)) (build (str-cat (assert ( ?symbol 10 Henrique --- [EMAIL PROTECTED] wrote: I am sorry, I should have been more detailed. What I want to do is somethink like this: (bind ?string (call string1 concat

JESS: empty list pattern and ppdefrule

2005-11-03 Thread Jonathan Sewall
In a December 2004 reply posted on the forum, we see the script dan.clp (below). We have observed that its pattern (foo (data $?data:(= (length$ $?data) 0))) can be rewritten more simply (foo (data )) and the rule behaves similarly (cf. also the fact printouts in the watch

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread ejfried
I think Jonathan Sewall wrote: However, in Jess v7.0b4, ppdefrule omits the (data ) pattern from its output. Is our simpler syntax for testing multislots unsupported? Many thanks, Seems to work as ever; this is apparently just a bug in the pretty-printer. Thanks for the report.

Re: JESS: empty list pattern and ppdefrule

2005-11-03 Thread Jason Morris
In a December 2004 reply posted on the forum, we see the script dan.clp (below). We have observed that its pattern (foo (data $?data:(= (length$ $?data) 0))) can be rewritten more simply (foo (data )) Hi Jonathan, This is an interesting point...since it was also my code :-D Had I