Re: JESS: jess.Value as bean property

2002-11-12 Thread Ina Sollinger
Hi Thomas, to be honest, i only had a very short look on your code and i didnt try sth. with jess.value objects as java properties. however, i might saw sth. in your rule > (defclass Attr Attr) > (defrule match-attrs > (Attr (objName ?n) (value ?v&~1)) > => > (printout t " There is an attr

Re: JESS: help

2002-11-12 Thread ejfried
I think swati kayasth wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > I'm developing a application using Jess. I'm using applets. I > want to create a Rete object in the init() method of the applet. > In the documentation, it has been given that if I'm creating a > Rete obj

Re: JESS: Can't execute system command

2002-11-12 Thread ejfried
There is no "COPY.EXE" on your Windows system, so you can't evoke it this way. COPY is a built-in command of CMD.EXE or COMMAND.COM, depending on what flavor of windows is running. You'd need to do something like (system cmd /c "copy f1.txt f2.txt"). See the Java Programmer's FAQ, section 18, que

Re: JESS: jess.Value as bean property

2002-11-12 Thread ejfried
I think Ina Sollinger wrote: > > instead of (value ?v&~1)) > try (value ?v&:~1) No, -don't- try that -- it's incorrect. The colon is only used as part of a predicate function constraint and is always followed by an open parenthesis. There's nothing wrong with the original code. -

RE: JESS: help

2002-11-12 Thread Srinivas_Kotamraju
Hi, Try using the archive tag in applet to refer to the jar file (the jess.jar file), I think it would solve the problem. Srinivask > -- > From: swati kayasth[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Saturday, November 09, 2002 4:20 AM > To: [EMAI

Re: JESS: Problem with set-member assigning a Point to avariable defined as a point.

2002-11-12 Thread ejfried
I think Ruff, Jeff wrote: > ... cannot update the two Points in the object. > > (printout t "Check values of BBox " (str-cat ?dPair) crlf) > (set-member ?dPair xy1 ?pt1) > (set-member ?dPair xy2 ?pt2) > > <<<>>> ... > Check values of BBox [(0,0),(0,0)] Jess's time-

RE: JESS: Problem with set-member assigning a Point toavariable defined as a point.

2002-11-12 Thread Ruff, Jeff
I am sorry for the lack of content. The real issue, was I was able to create a Pair object [an xml object] but was unable to update attributes of this object[in this case xy1 and xy2]. It was not passing the required point objects to the Pair class. We added a set method to the Pair class to acc

JESS: Does anyone know of a good visual presentation of a rule?

2002-11-12 Thread James . Crow
Does anyone know of a good visual presentation of a rule and rule relationship to use for design and re-engineering. Regards, Jim

JESS: type conversion

2002-11-12 Thread matt
I'm doing the following in Java: Funcall f = new Funcall("definstance", reteEngine); f.add(new Value(key, RU.ATOM)); f.add(new Value(obj)); //where obj is an Individual f.add(new Value("static", RU.STRING)); f.execute(reteEngine.getGlobalContext()); and in Jess, I'

Re: JESS: jess.Value as bean property

2002-11-12 Thread ejfried
1) A LONG and an INTEGER do not match; 2) There's currently no way to write a long literal in Jess; 3) An INTEGER "1" and a LONG "1" print the same, so a slot that prints as (value 1) may contain either a LONG or an INTEGER. Your rule is matching below because the pattern "?v&~1" matches any LON

Re: JESS: Problem with set-member assigning a Point toavariable defined as a point.

2002-11-12 Thread ejfried
I think Ruff, Jeff wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > I am sorry for the lack of content. The real issue, was I was able to > create a Pair object [an xml object] but was unable to update attributes > of this object[in this case xy1 and xy2]. It was not passing the >

RE: JESS: Problem with set-member assigning a Point toavariabledefined as a point.

2002-11-12 Thread Ruff, Jeff
Thanks for looking into it. Jeff Ruff ChipData -Original Message- From: [EMAIL PROTECTED] [mailto:ejfried@;ca.sandia.gov] Sent: Tuesday, November 12, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: Re: JESS: Problem with set-member assigning a Point toavariable defined as a point. I think R

Re: JESS: type conversion

2002-11-12 Thread matt
Well this works but I still think it should have converted it for me. Maybe somebody can correct me. (printout t (not (?a booleanValue)) crlf) On Tue, 12 Nov 2002, [EMAIL PROTECTED] wrote: > > I'm doing the following in Java: > > Funcall f = new Funcall("definstance", reteEngine); > f.ad

JESS: Is format suppose to add "0" ?

2002-11-12 Thread Ruff, Jeff
You recently answered a question about changes in "format" with the new release as shown in the text below. "If you want to print the number as an integer in a four-digit field," "then convert it to an integer using the (integer) function first:" "(format nil "%04d" (integer ( * (fetch TopPad) 1.

Re: JESS: Is format suppose to add "0" ?

2002-11-12 Thread ejfried
It looks to me as if Jess and gcc are consistent in this regard: [ejfried@asllinux tmp]$ cat > foo.c main() { printf("%04d\n", 10); printf("%4d\n", 10); } [ejfried@asllinux tmp]$ gcc foo.c [ejfried@asllinux tmp]$ ./a.out 0010 10 [ejfried@asllinux src]$ java jess.Main Jess, the Java Expe