Re: JESS: Iterate through facts from Java

2005-07-22 Thread Mitch Christensen
I suspect you want to use Rete.runQuery() instead. -Mitch Negoita, Cristian wrote: Hi all, I have a query that I want to execute and get the results from java code. What would be the proper/best way to do it? I have smth. like: (defquery GetResults (Result)) In java, I call it with:

Re: JESS: Jess interacting with objects instantiated in Java

2005-07-22 Thread Mitch Christensen
Your java object (bean) resides on the java heap, an associated shadow fact resides in Jess's working memory. You can either create your bean external to jess and assert via Jess's java API, or you can create the object within Jess. Either method will result in a shadow fact in working

RE: JESS: nil value

2005-06-05 Thread Mitch Christensen
During pattern matching I use (x ?x~nil) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, June 05, 2005 5:01 AM To: jess-users@sandia.gov Subject: JESS: nil value Hi, How to check if a variable is not equal 'nil' value or

JESS: New JessDE Editor feature (Folding?)

2005-04-21 Thread Mitch Christensen
A while back the question was asked whether there were other features that were desired that could possibly be included in the JessDE editor. At that time the thought of folding came to mind, but I was somewhat ambivelant about the benefit it would provide. I was reading this article on the

JESS: JessDE line numbering?

2005-04-12 Thread Mitch Christensen
It seems I may have asked this question before but I dont see anything in the archive. Is it possible to turn on line numbering in .CLP files? -Mitch

JESS: Problem with 7.0a6

2005-04-06 Thread Mitch Christensen
Hi, I just installed 7.0a6 and restarted Eclipse. When I open a .clp file, I get tons of errors due to dependency problems. These errors didnt use to be there. I then right-clicked on the .clp file in the Package Explorer and selected Properties to display the properties page. I then

RE: JESS: Problem with 7.0a6

2005-04-06 Thread Mitch Christensen
? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:47 AM To: jess-users@sandia.gov Subject: Re: JESS: Problem with 7.0a6 Hi Mitch, I think Mitch Christensen wrote: I just installed 7.0a6 and restarted

RE: JESS: Bind

2005-03-18 Thread Mitch Christensen
Try getting rid of the tilde (negation operator) in front of ?m in your pattern. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smeagol k Sent: Friday, March 18, 2005 3:53 AM To: jess-users@sandia.gov Subject: JESS: Bind Hi, I am rather stuck on a

JESS: Can't add text to .clp file that ends in commented out code

2005-03-17 Thread Mitch Christensen
Ok...I can faithfully reproduce this now. 1) I open a brand new .clp file (i.e. TestAddText.clp) to my project. 2) Paste the following lines into the file: (defrule test-rule Demonstrate a file that can't be appended = (assert (cannot-append))) NOTE: Do not add any trailing

RE: JESS: Reversing logic

2005-03-11 Thread Mitch Christensen
worth thinking about. SDG jco Mitch Christensen wrote: Thanks All. DeMorgan's laws is what I was trying to remember last night (and couldn't). I knew there was a way to transpose/normalize logic, but couldn't recall the specifics. However, ;) I did do a truth table, and I did change

RE: JESS: Reversing logic

2005-03-11 Thread Mitch Christensen
, March 11, 2005 5:58 PM To: jess-users@sandia.gov Subject: Re: JESS: Reversing logic I think Mitch Christensen wrote: rules are declarative and each rule must be incrementally independent; it must contain the logic that it needs and not depend on another rule to fire first before it fires

RE: JESS: Reversing logic

2005-03-09 Thread Mitch Christensen
Thanks All. DeMorgan's laws is what I was trying to remember last night (and couldn't). I knew there was a way to transpose/normalize logic, but couldn't recall the specifics. However, ;) I did do a truth table, and I did change the logic to fix my rule before posting my question. My problem

JESS: Reversing logic

2005-03-08 Thread Mitch Christensen
Ok, I know that I should know this, but Im having trouble reasoning through it. Why do the following two CEs versions produce significantly different results? The only difference is that Im reversing the and/not order, but this results significantly different activation results. (not

JESS: JessDE suggestion: Comment Selection

2005-03-02 Thread Mitch Christensen
Just a thought. It would be handy to be able to select a block of code and have the JessDE Editor automatically comment out that section (and vice-versa). -Mitch To unsubscribe, send the words 'unsubscribe jess-users [EMAIL

RE: JESS: JessDE suggestion: Comment Selection

2005-03-02 Thread Mitch Christensen
. Is this possible? Thanks. -Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 7:46 AM To: jess-users@sandia.gov Subject: Re: JESS: JessDE suggestion: Comment Selection I think Mitch Christensen wrote: Just

JESS: Using 'unique' in pattern definition

2005-03-02 Thread Mitch Christensen
I found the following snippet while searching the archive for information on profiling/performance. (defrule example-4 ;; Find the pairs of buttons such that one's label is one greater ;; then the other (button (text ?t1)) (unique (button (text ?t2=(str-cat (+ (integer ?t1) 1) =

JESS: Backward Chaining within Modules

2005-03-01 Thread Mitch Christensen
I have a question regarding backward chaining and the use of modules. According to JIA, If, when the rule engine is reset, there are no matches for this pattern, the code asserts a (goal-seeking) fact into working memory... But what if the need for such a fact comes and goes as the data is

RE: JESS: Newbie- simlpe interface

2005-02-19 Thread Mitch Christensen
Title: Message I don't get the symptom you describe. I actually get syntax errors down at the bottom with each of these calls: ((?*frame* getContentPane) add ?*nlabel*))((?*frame* getContentPane) add ?*apane*))((?*frame* getContentPane) add ?*bpane*))((?*frame* getContentPane) add

JESS: JessDE Content assist on slot values (7.0a5)

2005-02-18 Thread Mitch Christensen
Hey, I notice that if I utilize content assist to auto-complete a slot name and type relatively fast, I end up with an incorrect slot name. For example, while attempting to type the following pattern: (allocation-entity (source ocr)) If I type '(allocation (' and then pause for the content

RE: JESS: Debugger behavior

2005-02-16 Thread Mitch Christensen
] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:42 PM To: jess-users@sandia.gov Subject: Re: JESS: Debugger behavior I think Mitch Christensen wrote: I notice that in the JessDE debugger (7.0a5) the only stepping feature enabled is 'Step over'. However, the behavior that I'm

JESS: Debugger behavior

2005-02-15 Thread Mitch Christensen
I notice that in the JessDE debugger (7.0a5) the only stepping feature enabled is 'Step over'. However, the behavior that I'm seeing is actually 'Step into'. Is this as designed, and will both be supported in a future release? -Mitch

JESS: Significant strangeness in JessDE 7.0a5

2005-02-13 Thread Mitch Christensen
Hey, I've been doing some serious development over the weekend using 7.0a5 and have noticed (and verified) some rather strange behavior. First off, I should state that I'm simply living with the (apparent) memory leak for now since I haven't had time to do the profiling that was suggested (yet).

JESS: RE: Significant strangeness in JessDE 7.0a5

2005-02-13 Thread Mitch Christensen
the Jess 'eclipse' directory into my Eclipse directory. O Start Eclipse. I'd just like to confirm that its safe to reuse your workspace across JessDE versions. -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Sunday, February 13, 2005 7:33 AM To: [EMAIL

JESS: RE: Significant strangeness in JessDE 7.0a5

2005-02-13 Thread Mitch Christensen
to be a cached copy of that file somewhere in the workspace. I'm going to try with a fresh workspace. -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Sunday, February 13, 2005 7:16 AM To: Jess Mailing List Cc: mtc Subject: Significant strangeness in JessDE 7.0a5

RE: JESS: RE: Significant strangeness in JessDE 7.0a5

2005-02-13 Thread Mitch Christensen
] Sent: Sunday, February 13, 2005 2:02 PM To: jess-users@sandia.gov Subject: Re: JESS: RE: Significant strangeness in JessDE 7.0a5 I think Mitch Christensen wrote: FWIW, I just restarted Eclipse and the edits I made yesterday are gone yet again (3rd time now). There has to be a cached copy

JESS: (retract) spawns an infinite loop

2005-02-13 Thread Mitch Christensen
Hey, I've gotten myself bogged down in an infinite loop, and can't seem to coax any more information out of Jess to help me find it. Using the Jess debugger (in a5) I've proven that that last call is to (retract). This call never returns, and my CPU show 100% consumption. There doesn't seem to

RE: JESS: (retract) spawns an infinite loop

2005-02-13 Thread Mitch Christensen
. -Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mitch Christensen Sent: Sunday, February 13, 2005 2:26 PM To: Jess Mailing List Subject: JESS: (retract) spawns an infinite loop Hey, I've gotten myself bogged down in an infinite loop, and can't seem

RE: JESS: Potential Memory Leak in 7.0a5

2005-02-08 Thread Mitch Christensen
, 2005 7:47 AM To: jess-users@sandia.gov Subject: Re: JESS: Potential Memory Leak in 7.0a5 I think Mitch Christensen wrote: I restarted Eclipse but did not restart my RCP instance. I also started the Windows Task Manager and opened the 'Processes' panel and sorted by memory usage. The eclipse

JESS: Potential Memory Leak in 7.0a5

2005-02-07 Thread Mitch Christensen
Hey, I was working this weekend using Jess 7.0a4. I had several .clp file open and was simply editing code (not executing anything at all). All of a sudden, my entire Eclipse IDE crashed (simply disappeared). I looked at the .log and saw this at the very end: !ENTRY org.eclipse.ui 4 4 Feb 07,

JESS: Listing working memory in the 7.0 debugger

2005-02-07 Thread Mitch Christensen
I hope this isn't a stupid question, but is there a way to list facts in working memory from within the debugger? For instance I set a breakpoint, and once the breakpoint is reached, I'd like to do the equivelant of the (facts) statement. I recognize that invoking Jess statements while the

RE: JESS: Listing working memory in the 7.0 debugger

2005-02-07 Thread Mitch Christensen
Nice! :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, February 07, 2005 7:59 PM To: jess-users@sandia.gov Subject: Re: JESS: Listing working memory in the 7.0 debugger I think Mitch Christensen wrote: I hope

RE: JESS: reset doesn't clear the facts

2005-01-27 Thread Mitch Christensen
The reset function updates the shadow fact to match the JavaBean, Static shadow facts are refreshed only when a reset is issued. P92 of JIA. Are these by any chance shadow facts? -mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

JESS: Interesting stacktrace (optional reading)

2005-01-26 Thread Mitch Christensen
Hey, I was moving our application from Jess 6.1p6 to 7.0a4 yesterday and came across a strange problem. The problem is fixed now, but I thought I'd share my findings. By simply replacing the jess.jar file and re-running the application, I got the following exception: 15:47:40,255 ERROR

JESS: RE: Interesting stacktrace (optional reading)

2005-01-26 Thread Mitch Christensen
the ?name2 that is not a number. -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 5:58 AM To: 'jess-users@sandia.gov' Subject: Interesting stacktrace (optional reading) Hey, I was moving our application from Jess 6.1p6 to 7.0a4

RE: JESS: Interesting stacktrace (optional reading)

2005-01-26 Thread Mitch Christensen
). -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 8:21 AM To: 'jess-users@sandia.gov' Subject: RE: JESS: Interesting stacktrace (optional reading) Just FYI, The bottom portion of this message is missing (i.e. chopped off

RE: JESS: How to match this set of Beans?

2005-01-19 Thread Mitch Christensen
First off, I assume that there must be more to MyBean than properties A B to make the facts unique, otherwise you could never have multiple MyBean facts with the same propertyA with all propertyB values true. For your firt premise you could use the (not) construct to exclude any MyBean instance

JESS: JessDE Editor Behavior

2005-01-19 Thread Mitch Christensen
Hi Ernest, Now that I've been using the JessDE editor for a while, I have a question/suggestion regarding the how parenthesis are handled. When I open parenthesis, the JessDE editor automatically appends a closing paren after the cursor. This is nice, however, when I close the paren, I now have

RE: JESS: JessDE Editor Behavior

2005-01-19 Thread Mitch Christensen
FWIW, I'm running Jess 7.0a4, Eclipse 3.0.1 on Windows XP Pro. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 2:29 PM To: jess-users@sandia.gov Subject: Re: JESS: JessDE Editor Behavior I think Mitch

JESS: More JessDE Editor Behavior

2005-01-19 Thread Mitch Christensen
While we are on the subject, I notice that in the JessDE editor while entering a comment, double-quotes and parens are still auto-completed (for lack of a better term). In the Eclipse Java editor, this feature is disabled when editing comments. Its certainly not a big deal, but it would be a

RE: JESS: JessDE Editor Behavior

2005-01-19 Thread Mitch Christensen
. This is different from what the Jess editor does. That must be what you're expecting, yes? I can fix the JessDE to do the same thing. I think Mitch Christensen wrote: FWIW, I'm running Jess 7.0a4, Eclipse 3.0.1 on Windows XP Pro. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: JESS: JessDE .clp file errors and defclass

2005-01-12 Thread Mitch Christensen
Hey, I had a similar problem with using Rete.addUserpackage() from java. All .clp files that referenced any functions defined in my Userpackage displayed 'unknown function' errors. Adding an explicit (load-package ...) call to the top of all affected .clp files fixed the problem. My original

RE: JESS: Newbiedefining a rules that gets max value joining a list of facts and a multifield

2005-01-04 Thread Mitch Christensen
Title: Message There are obviously many ways to satisfy a given set of requirements. My experience has shown that often times when I run into trouble, I'm trying to do too much with a single rule. I can usually find a solution by interjecting some intermediate facts and/or splitting the

RE: JESS: Finding distinct slot values

2005-01-01 Thread Mitch Christensen
-id ~?id))) = ...) Thanks for your help. -Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 7:08 PM To: jess-users@sandia.gov Subject: Re: JESS: Finding distinct slot values I think Mitch

JESS: Finding distinct slot values

2004-12-29 Thread Mitch Christensen
Does anyone know of an simple/efficient way to find facts with distinct slot values? For example, given the following deftemplate: (deftemplate assignment (slot key)(slot value)) I want to find each 'assignment' fact with a unique/distinct 'key' value. In this instance I could have multiple

RE: JESS: Slot type is another template

2004-12-29 Thread Mitch Christensen
I'm not sure if this answers your question, but a slot can hold a reference (actually, id) of another fact asserted into working memory, but typically does not hold an actual fact. For example: Jess (clear) TRUE Jess (deftemplate Living_Thing) TRUE Jess (deftemplate Injury) TRUE Jess

JESS: Adding newlines to the end of a .clp file

2004-12-28 Thread Mitch Christensen
I noticed for the first time this morning that I can't add extra newline characters to the end of a .clp file in the JessDE editor. Is this normal? I don't remember this being the case before. Also, I noticed that trying to open a .clp file using File/Open External File... Results in an Error

JESS: Recognizing user defined functions in JessDE editor

2004-11-30 Thread Mitch Christensen
I thought that 7.0a3 would fix my problem, but after some thought, I don't see how it could. I have a collection of user defined functions written in Java and applied to the Rete instance at runtime using Rete.addUserPackage(). Unfortunately wherever I make calls to any of these functions in my

JESS: defclass problem in 7.0a3

2004-11-30 Thread Mitch Christensen
Hey, I use JDom for XML document generation from within Jess. I reported a while back (i.e. 7.0a1) that my defclass statement generates a No such class at token 'org.jdom.Document' warning in the JessDE editor, and all subsequent LHS references to EMIT_XML::xml-document result in a Bad slot

JESS: RE: defclass problem in 7.0a3

2004-11-30 Thread Mitch Christensen
statements, but not the project's classpath (which does in fact contain jdom.jar). -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 2:45 PM To: [EMAIL PROTECTED] Cc: 'mtc' Subject: defclass problem in 7.0a3 Hey, I use JDom for XML

RE: JESS: recognizing speech from JESS

2004-11-19 Thread Mitch Christensen
You should also consider the use of grammar parsers such as Antlr or SableCC for processing the text output by the speech-to-text recognizer. These are specifically designed for well defined grammars, as opposed to natural language processing, however from what you describe, you can probably

JESS: Printing facts and activations

2004-11-19 Thread Mitch Christensen
The (agenda) function does list the facts that resulted in the activation. -Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, November 18, 2004 2:27 AM To: [EMAIL PROTECTED] Subject: Importance: High Good morning,

JESS: RE:

2004-11-19 Thread Mitch Christensen
I'm not sure what you mean by write the result of agenda. The (agenda) function dumps the agenda to stdout, but somehow I suspect that this isn't what you are looking for. The agenda is constructed as facts are asserted into working memory. Rule activations on the agenda are removed from the

RE: JESS: integrated a GUI java with graphic elements in Jess

2004-11-19 Thread Mitch Christensen
Chapter 13 in Jess In Action is all about this. -Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Catarina Tosar Miguez Sent: Friday, November 19, 2004 10:33 AM To: [EMAIL PROTECTED] Subject: JESS: integrated a GUI java with graphic elements in Jess

RE: JESS: How to implement rules with orders of precedence?

2004-11-16 Thread Mitch Christensen
Another approach would be to assert discount facts that specify a discount based on city. For example: (deftemplate discount (slot city)(slot amount)) Now you could have two 'apply-discount' rules that apply the discount, such as: (defrule apply-discount-by-city (address (state NY)(city

JESS: Jess 7.0a2

2004-11-12 Thread Mitch Christensen
It seems that I asked this question before, but I can't find a response. Using the Eclipse Jess editor I'm getting a false error condition. I have a CLP file that has the following defclass at the top: (defmodule EMIT_XML) (defclass EMIT_XML::xml-document org.jdom.Document) (import

RE: JESS: Rules for Java Bean Tree built from XML (long)

2004-11-03 Thread Mitch Christensen
I'm currently working on a solution that is similar to what you describe. I have an (almost completely flat) XML file generated by a 3rd party product. I apply an XSLT script which generates (fact) statements based on the 3rd party XML file's contents. I then load the (fact) statements into

RE: JESS: Problems with defclass command

2004-10-22 Thread Mitch Christensen
Your classpath needs to include both the jess.jar file *and* the location of the example class files. You might try the following: ~~/Jess61p7 java -cp jess.jar:jess/examples/pumps jess.Main jess/examples/pumps/pumps.clp The important thing is to get both Tank.class and Pump.class on the

JESS: Recognizing user defined (Java) functions in the Jess Editor

2004-10-11 Thread Mitch Christensen
Hey, I'm using 7.0a2 and noticed that I get warnings inside the Jess Editor on all functions I've defined in a separate UserPackage. The UserPackage is defined in a different Java project. Is there something I need to do to allow Jess files in one package to recognize user defined java

JESS: Syntax error in 7.0a1

2004-10-07 Thread Mitch Christensen
Hey, In Eclipse I create a brand new Java project, and then add a single Jess file to the project root containing the following: (import org.jdom.Document) (defclass xml-document org.jdom.Document) (defrule find-xml-document No comment (xml-document (OBJECT ?obj)) =

RE: JESS: Problems with Eclipse and Jess editor

2004-10-07 Thread Mitch Christensen
Speaking of launch configurations, are there plans for an interactive console? Maybe I missed it, but it seems that the launch configuration just parses the specified file and exits. I've been using a standard 'Java Application' launch configuration to launch Jess and then continue to interact

RE: JESS: Counting the number within facts

2004-10-04 Thread Mitch Christensen
function within tht book JESS in Action. Can you give me an example in using random function to select facts? lai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mitch Christensen Sent: Monday, October 04, 2004 12:35 AM To: [EMAIL PROTECTED] Subject: RE: JESS

RE: JESS: JessDE parse problem

2004-09-27 Thread Mitch Christensen
I'm not sure if it addresses your problem, but Eclipse does support the notion of a TableTree control. This provides for multi-columnar tree elements. As for determining which LHS's have been satisfied, I was somewhat expecting the equivalent of the network view implemented as an Eclipse view.

RE: JESS: Counting the number within facts

2004-09-27 Thread Mitch Christensen
Well, the following works. I'll leave it to others to comment on whether there is a better/easier way. ...for example, I was forced to declare salience. This doesn't seem necessary, but I couldn't quite get it to work without. -Mitch (deftemplate link comment (slot type)(slot

JESS: Code organization (...and Jess 7.0a1)

2004-09-20 Thread Mitch Christensen
I downloaded 7.0a1 over the weekend and played with it a bit. As a result, Ive got a question regarding code organization. My Jess code (rule base) is broken into many different files/directories. I have a single point of entry, called main.clp that processes each file using the (batch)

JESS: Jess expired under JessDE

2004-09-20 Thread Mitch Christensen
Hey, Ive added both JessDE provided plugins to my Eclipse installation and everything seems fine. However, whenever I launch jess using a Jess launch configuration I get a This copy of Jess has expired. message on the Eclipse console. Im sure this must be a pathing problem, but Ive not

JESS: RE: Help with (defadvice)

2004-09-13 Thread Mitch Christensen
. This allows me to separate my rules from my data files (which reside under C:\data). I was intending on using 'before advice' in (batch) to prepend the parameter value with the contents of the 'app.rules.dir' system property. -Original Message- From: Mitch Christensen [mailto:[EMAIL

JESS: Help with (defadvice)

2004-09-13 Thread Mitch Christensen
Hey, I'm attempting to add before 'advice' to the (batch) function to do some path manipulation tricks. I'm experiencing the following strange behavior: Jess (defadvice before batch (printout t before batch advice crlf)) TRUE Jess (batch main.clp) before batch advice Hello from main.clp Hello

RE: JESS: Multislot with single value

2004-08-16 Thread Mitch Christensen
Title: Multislot with single value Multifields require the $?varname syntax on the LHS. You might try the following: (defrule bondMVMaxPCOutstanding::calcifnc (declare (auto-focus TRUE)) (rulesfired (rules bondMVMaxPCOutstanding)) ?b - (grouped-facts (partitionname cusip)

RE: JESS: hi All

2004-08-11 Thread Mitch Christensen
You could assign each rule to a different module, then push the modules in the appropriate order. You could use what I've been calling 'indicator' facts. The first rule to fire looks for the lack of any indicator fact, and asserts a fact indicating it's execution. The second rule looks

RE: JESS: MultiSlots

2004-08-11 Thread Mitch Christensen
Title: MultiSlots If I understand you correctly, this seems to work: (deftemplate test-fact (slot A)(slot B))(deftemplate test-fact-collection (slot A)(multislot p)) (deffacts start (test-fact (A a)(B b)) (test-fact (A a)(B e)) (test-fact (A h)(B i)) (test-fact (A h)(B l)) (test-fact (A

JESS: Implementing equals() and hashCode()

2004-08-04 Thread Mitch Christensen
FWIW, I have dealt quite effectively with this situation using the following two references and the associated utility classes: http://www.javapractices.com/Topic17.cjp http://www.javapractices.com/Topic28.cjp I was able to address some serious bugs I had using the Hibernate O/R mapping

RE: JESS: Questions

2004-08-04 Thread Mitch Christensen
1) You can use defquery and count-query-results. 2) Facts that have contributed to activations are still available for regular pattern matching (i.e. your other, non-activated rule will still consider facts that support existing activation records). If you are trying to find a way to compare a

JESS: Accessing java.lang.System.out

2004-08-03 Thread Mitch Christensen
I'm trying to use JDom to emit XML from Jess. The org.jdom.output.XMLOutputter.output() method requires an OutputStream parameter. I'd like to use System.out, but I can't figure out how to pass this as a parameter. Here is a simplified snippet of what I am trying to do... (import org.jdom.*)

JESS: RE: While on the subject of error messages...

2004-07-23 Thread Mitch Christensen
Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: While on the subject of error messages... Jess reported an error in routine DefinstanceList.updateShadowFact while executing (reset). Message: Object

RE: JESS: RE: While on the subject of error messages...

2004-07-23 Thread Mitch Christensen
with a definstanced object. In Jess 6. this can happen if the object's hashCode() varies over time. Is this true of the class named in the error message? I think Mitch Christensen wrote: I'm really sorry about that. I sent this message prematurely. I'm getting this exception thrown during (reset), and I'm

JESS: What does this error mean?

2004-07-19 Thread Mitch Christensen
Hey, I'm getting the following error message in my log file: Jess reported an error in routine Jesp.parseLHS while executing (batch-local recognizers/Columnar.clp). Message: Expected '-' . Program text: ( defrule load-allocation-entities Load all allocation entities associated with

RE: JESS: Execute rules in jess

2004-06-30 Thread Mitch Christensen
Assert the fact(s) that match the LHS of your rule. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sergio Martmn Ballesteros Sent: Wednesday, June 30, 2004 7:16 AM To: [EMAIL PROTECTED] Subject: JESS: Execute rules in jess Hello, How could I execute

RE: JESS: Newbie Problem running Jess

2004-03-24 Thread Mitch Christensen
Try renaming C:\Jess to C:\Jess61 or CD to C:\Jess. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michael KnapikSent: Wednesday, March 24, 2004 9:32 AMTo: [EMAIL PROTECTED]Subject: JESS: Newbie Problem running Jess I downloaded and

JESS: Retract from java

2004-03-02 Thread Mitch Christensen
If I assert a fact using Rete.definstance(), what is the best way to later retract that fact from Java? Rete.definstance() returns a FactIdValue. Is there a way to convert this into a Fact so I can use Rete.retract()? According to the javadoc, I shouldn't use Rete.findFactByID() unless I have

JESS: RE: Retract from java

2004-03-02 Thread Mitch Christensen
Nevermind... FactIdValue.factValue(). Sorry for the interruption. -Mitch -Original Message- From: Mitch Christensen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:56 AM To: [EMAIL PROTECTED] Cc: mtc Subject: Retract from java If I assert a fact using Rete.definstance

JESS: Passing matched shadow facts as parameters

2004-02-16 Thread Mitch Christensen
If I have classes A, B and C, and I assert several instances of B and C, I can't seem to call a method on A that takes either B or C as parameters. For example: (defrule create-object-A Creates and instance of object A ?object-B - (B) ?object-c - (C) = (bind ?object-A (new A ?object-B

RE: JESS: Creating rules within rules

2004-02-13 Thread Mitch Christensen
Probably what you want can be accomplished by defining your child rule in a different module, then activate that module in your RHS. -Mitch -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ben AllenSent: Friday, February 13, 2004 5:42 AMTo: Jess

JESS: executeCommand() not re-entrant?

2004-02-10 Thread Mitch Christensen
Title: Message I have a user-defined function implemented in Java called (execute-command) that accepts a resource name (i.e.filename) argument. This function reads the contents of the specified resource into a String, and calls rete.executeCommand() on the resource's contents. Now, if the

JESS: Jess and Eclipse RCP

2003-12-04 Thread Mitch Christensen
I understand that Jess will be providing Eclipse IDE plugins with the charlemaigne (sp?) release. Is there some place I can go to read up on the proposed Eclipse plugins? Our application is being built using the Eclipse Rich Client Platform (RCP), and I would really like to provide rules

RE: JESS: Jess and Eclipse RCP

2003-12-04 Thread Mitch Christensen
] Subject: Re: JESS: Jess and Eclipse RCP I think Mitch Christensen wrote: I understand that Jess will be providing Eclipse IDE plugins with the charlemaigne (sp?) release. Is there some place I can go to read up on the proposed Eclipse plugins? It's probably time I put together a web page

RE: JESS: Defrule ordering woes

2003-08-27 Thread Mitch Christensen
loss in densely multithreaded operation. Anyone want to comment? I think Mitch Christensen wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hey, I'm having trouble understanding why reordering 'defrule' statements in a Jess script changes how the program runs. Specifically

JESS: Defrule ordering woes

2003-08-25 Thread Mitch Christensen
Hey, I'm having trouble understanding why reordering 'defrule' statements in a Jess script changes how the program runs. Specifically, I've created a UserFunction timer that asserts a 'temporal-event' fact every second (source attached). Then I have a simple Jess script (also attached) that

RE: JESS: Working Memory Persistence

2003-08-14 Thread Mitch Christensen
Nice! :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Working Memory Persistence I think Mitch Christensen wrote: Does Jess support persisting Working

RE: JESS: Newbie question (Coin puzzle-SOLVED)

2003-08-14 Thread Mitch Christensen
Thank you both for responding. I can see that Ernest's solution leverages filtering, but I don't have a clue what's going on with the CCP stuff. I suspect I'd be better off focussing on the proper use of Jess first. A bit off topic, but I get a variable not bound exception if I use a variable

JESS: Problem with Swing

2003-08-14 Thread Mitch Christensen
The following code snippet taken directly from chapter 13 of JIA displays an *empty* JFrame. If I resize the window (JFrame), the text magically appears. Could this be a java version problem? I am using java version 1.4.1_01 on Windows 2000. (import javax.swing.*) (import java.awt.*) (import

JESS: Working Memory Persistence

2003-08-14 Thread Mitch Christensen
I'd normally research this myself and not consume bandwidth, but I need a quick answer, and maybe someone knows off the top of their head. Does Jess support persisting Working Memory, or do you have to re-assert/rebuild in the event of a system failure, etc? I need to address both recovery as

RE: JESS: Newbie question (Coin puzzle-SOLVED)

2003-08-14 Thread Mitch Christensen
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, August 11, 2003 8:27 AM To: [EMAIL PROTECTED] Subject: Re: JESS: Newbie question (Coin puzzle) I think Mitch Christensen wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] PROBLEM: Define

RE: JESS: Newbie question (Coin puzzle-SOLVED)

2003-08-14 Thread Mitch Christensen
: Monday, August 11, 2003 2:33 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Newbie question (Coin puzzle-SOLVED) I think Mitch Christensen wrote: A bit off topic, but I get a variable not bound exception if I use a variable in the pattern to replace the hard-coded '50' and '100' values