JESS: Newbie questions

2004-08-03 Thread Mehta, Chirag (IT)
Also, If ?q is a negative number, how do I change it so its positive? i.e |?q| Chirag -Original Message- From: Mehta, Chirag (IT) Sent: 03 August 2004 11:01 To: '[EMAIL PROTECTED]' Subject: JESS: Newbie questions I have another silly beginner question: This is my code: (defrule

JESS: again: jess-performance

2004-08-03 Thread Marcus Schlappa
Hello Ernest, Here's where the problem lies. The one-engine/one-user architecture is inherently inefficient. The simplest change that would improve things would be to still use one engine per user, but as you suggest, cache the engines with the rules loaded. A (reset) before each user would be

JESS: Newbie questions

2004-08-03 Thread Mehta, Chirag (IT)
I have another silly beginner question: This is my code: (defrule equityHedgeMaxLiquidity::calcifnc (declare (auto-focus TRUE)) (productType EQTY) ?b - (Positions (quantity ?q) (cusip ?c) (median_22_day_volume ?m)

JESS: pbm with the input router

2004-08-03 Thread Bertrand . Gille
Hi, I am facing a problem when attempting to use jess in my java Application I've defined the output and the input router but, once i lanch the code in jess, i have the print in my TextAreawriter but when the code is asking for an entry ,something like (assert (fact (read)), the system

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.*)

Re: JESS: Newbie questions

2004-08-03 Thread ejfried
I think Mehta, Chirag (IT) wrote: Also, If ?q is a negative number, how do I change it so its positive? i.e |?q| Have a look at http://herzberg.ca.sandia.gov/jess/docs/61/function_index.html, which is a list of all the built-in functions in Jess, listed by category. Under the Mathematical

Re: JESS: Accessing java.lang.System.out

2004-08-03 Thread ejfried
I think Mitch Christensen wrote: 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. You have to use the get-member function to

Re: JESS: Newbie questions

2004-08-03 Thread ejfried
I think Mehta, Chirag (IT) wrote: This does not work as (productType EQTY) is incorrect. Don't know what you mean by is incorrect, but I'll guess one of two things: first, you've written this as is there were independent productType facts. Is this the case, or is productType a slot in the

Re: JESS: pbm with the input router

2004-08-03 Thread ejfried
I think [EMAIL PROTECTED] wrote: Hi, I am facing a problem when attempting to use jess in my java Application I've defined the output and the input router but, once i lanch the code in jess, i have the print in my TextAreawriter but when the code is asking for an entry ,something like

Re: JESS: again: jess-performance

2004-08-03 Thread ejfried
I think Marcus Schlappa wrote: To save time for building the rete network each time, I'd like to cache the engine state with the rules already loaded as you said before ... 1) At application startup, create a bunch of jess.Rete objects. 2) Load the rules into each one. 3) Store them in

Re: JESS: again: jess-performance

2004-08-03 Thread James Owen
I did that once. Long, long ago in a land far, far away. A place called VEA at FedEx. Virtual Enterprise Architecture. A time before J2EE. J2EE solved the problem that I had solved way back then using the pre-alpha version of Advisor, now called Blaze Advisor. By the time you get through with

R: JESS: new to jess

2004-08-03 Thread Camillo
Hi Jason, I'm also a new to using jess and I have a trouble... You say to use eq to compare objects,symbols and references. I have this problem: (defrule myRule (myPattern (mySlot slotValue))=...) where slotValue isn't a primitive type but a generic java object bounded to jess variable How I

JESS: Réf. : Re: JESS: pbm with the input router

2004-08-03 Thread Bertrand . Gille
Thanks for your answer. I have Jess in action (great book !!! many thanks for it) and so, i also have the jess61p4. ;-) I agree that it was more a java problem as i have solved it now. Many thanks for your answer Regards

RE: JESS: new to jess

2004-08-03 Thread Jason Morris
I think that Camillo wrote: How I use eq to compare generic objects? Well, first off a bit of listserv etiquette... let's not do an end-run around Ernest here. So if you have a question personally for me, then send it to me at my address below. But every day that Ernest has to answer FAQs is

Re: JESS: new to jess

2004-08-03 Thread ejfried
I think James Owen wrote: One other thing, something that most old timers even forget. :-) If you re-write equals for a class that already exists or one that you inherit then you have to re-write the hash map table. Of course what jco means is that if you override equals(), you should

RE: JESS: new to jess

2004-08-03 Thread Jason Morris
Oops! Yes, James and Ernest are correct... an error of omission on my part. You do indeed need to override the hashCode() method, too. I was fortunate enough to win a copy of Thinking in Java 3rd ed by Bruce Eckles at my local Java users group. It is available *free* as an electronic book at

Re: JESS: new to jess

2004-08-03 Thread James Owen
Thanks. I probably shouldn't be allowed to play with computers right now. Not even email. I pulled my back out again and I'm taking muscle relaxers and mild pain killers (ala Rush L.) and I hope I'm not "hooked" by the time that I get well. :-) Anyway, thanks for the correction and that really

Re: JESS: new to jess

2004-08-03 Thread Dusan Sormaz
Can we get the full reference for this book. Thanks, Dusan Sormaz At 01:40 PM 8/3/2004, you wrote: One other thing, something that most old timers even forget. :-) If you re-write equals for a class that already exists or one that you inherit then you have to re-write the hash map table. There