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