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
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
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
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
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
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))
-
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
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
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
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.
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
11 matches
Mail list logo