Re: JESS: Firing order

2005-11-20 Thread Alan Moore
Nicolas Fortin wrote: Hello everybody, I am wondering if it is possible to randomize the firing order, You can create an object that implements the jess.Strategy interface, see: http://herzberg.ca.sandia.gov/jess/docs/70/api/jess/Strategy.html You will implement the compare() method and

Re: JESS: Debugger

2005-11-17 Thread Alan Moore
[EMAIL PROTECTED] wrote: I think Jeffrey Davine wrote: I'll do the research, but as a general matter, do you think the Jess API exposes enough information (particularly concerning the rete tokens) so that I could write such a tool? Alan's more optimistic, but I myself don't think this can

Re: FW: JESS: Debugger

2005-11-16 Thread Alan Moore
Jeffrey, I created a debugger quite a few years back (Jess version 4.xx) that I have not maintained. I'd have to locate the media it is archived onto but I've been wanting to resurrect it. It didn't do exactly what you want and it was pretty crude since it was fronted by the Windows

Re: JESS: Jess error: Bad index

2005-11-01 Thread Alan Moore
Eunice, Please provide the exact code and error messages you are getting. Please try to figure out whether the problem is with Protege, JessTab and/or Jess before posting to this list. For example, copy key portions (e.g. function names, exception names) of the stacktrace you are getting

Re: JESS: Converting from/to strings

2005-10-21 Thread Alan Moore
Henrique Lopes Cardoso wrote: Hi, I have two problems. --- The first: I have a string which contains an atom. How do I convert it to an atom? I tried this,which works: (bind ?string henrique) (nth$ 1 (explode$ ?string)) Is there a simpler way? I can't think of any at the

Re: JESS: Using multifields in LHS

2005-10-20 Thread Alan Moore
Or more simply: (assert (a nice string)) (assert (b nice)) ; note: nice (in quotes) won't work (defrule r1 (a ?x) (b ?y:(member$ ?y (explode$ ?x))) = (printout t Found! crlf) ) (run) i.e. a non-zero value from (member$) evaluates in the pattern above like a TRUE - or like (neq

Re: JESS: code works from java but not clp file

2005-10-11 Thread Alan Moore
Also, in testing.clp, you can place the following code to help you debug the exception: ;; untested...ymmv (try (bind ?user-agent (new User harvey)) catch ;; ?ERROR will be the caught throwable (printout t ERROR = (?ERROR toString) crlf) (printout t cause = ((?ERROR getCause)

Re: JESS: Blackboard Framework

2005-10-11 Thread Alan Moore
Scott, Someone else is likely to have a more relevant answer but I thought I'd give my 2 cents worth - it's been a while (15 years?!) so I hope I can remember this correctly... During my graduate studies I worked with Dr. Len Myers and others at CalPoly SLO on a BB based system that used

Re: JESS: Problems with Jess and Eclipse

2005-10-07 Thread Alan Moore
Matt, Whoops, sorry - I didn't see your attachment. alan [EMAIL PROTECTED] wrote: In the screenshot, you show that you've defined two classpath variables, one named source pointing to the source directory, and one named jess pointing to jess.jar. This is no guarantee that you've *used* those

Re: JESS: Matching a static variable

2005-10-03 Thread Alan Moore
First, let me mention that I'm happy to see someone using the brand-new static imports feature -- the thing that lets you use (CarClass.MINI) as a constant. [alan] Nice, this makes things a *lot* cleaner. Thanks! Third, let me mention, as I often do on this list (I really need to make this

Re: JESS: Matrixes in Jess

2005-09-30 Thread Alan Moore
Yuri, You can use any/all facilities that Java has for matrices since Jess has full (reflective) access to the Java/third-party matrix APIs - see: http://math.nist.gov/javanumerics/jama If you want to pattern match against elements in a matrix, you can use multifields or ordered facts. For