JESS: How to get a Rule to fire once for each item in a List?

2001-11-27 Thread colin harris
Hi, I have a List of items say [1 2 3 4] and i want to get a Rule to fire for each item in the List. Any help on how this might be done would be much appreciated. (defrule processList (SOMETHING HERE??) => (printout t ?itemInList crlf)) regards colin harris ---

Re: JESS: Working with Dates

2001-11-27 Thread ejfried
If you need source compatibility between ECLIPSE and Jess, I would think the only way you're going to get it is to write a set of functions in both ECLIPSE and Jess which have the same interface. If ECLIPSE already has a set of standard date-related functions, maybe you could emulate them in Jess

Re: JESS: How to get a Rule to fire once for each item in aList?

2001-11-27 Thread ejfried
Depends where the list is. If it's in a multislot in a fact like (numbers 1 2 3 4) then just write the rule like (defrule processList (numbers $? ?itemInList $?) => (printout t ?itemInList crlf)) If, on the other hand, "I have a list" means that in some procedural code, you have a list

RE: Re: JESS: Serializing facts

2001-11-27 Thread dheerajkakar
Sorry Ernest, Here's the drill :) 1> 5.0a6 2>I have a listener on the server side which captures the jess event and in case of FACT, get the Fact object from event object. With this object and some more information creates another event object and tries to call methods on its listeners. Some

JESS: unsubscribe

2001-11-27 Thread César Toscano
unsubscribe  

Re: Re: JESS: Serializing facts

2001-11-27 Thread ejfried
I think [EMAIL PROTECTED] wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Sorry Ernest, Here's the drill :) > > 1> 5.0a6 This is a old and unsupported version of Jess. Please upgrade to 5.2 (or 6.0bx) and see if things don't improve. > 2>I have a listener on the server sid

JESS: Jess and EJBs

2001-11-27 Thread James Patterson
Title: Message Hey, I know J2EE people are going to be (rightfully) upset, but I was wondering if anyone could give me some pointers on integrating Jess with J2EE as an EJB... I'm pretty comfortable with Jess but I have very little knowledge of J2EE so anything would be helpful.   Thanks in

JESS: unsubscribe

2001-11-27 Thread ScheilaBulhoes
unsubscribe To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] ---

JESS: Use of view with a specified rule

2001-11-27 Thread Glenn Tarbox
Hello, The view function for a specified rule brings up an empty graph window (at least on my machine). It works properly without a rule having been specified (brings up the entire Rete network). Anyone else notice this? I'm using Jess 60b3. thanks, -glenn == mailto:

JESS: ASKing of the knowledgebase

2001-11-27 Thread Mark Nahabedian
How can I determine if a fact is present or can be concluded via backward chaining? Other expert systems I've used have an operator, typically named ASK, which will do this. Suppose I have a two argument predicate OPPOSITE-SIDE which is symetric, such that if (OPPOSITE-SIDE a b) is true then (O

Re: JESS: ASKing of the knowledgebase

2001-11-27 Thread ejfried
This comes up about twice a month on the mailing list. In currently released versions of Jess, queries don't trigger backward chaining. In the next release, they will. To turn this on for yourself, look in jess/MiscFunctions.java, at about line 680 (Jess 6.0b2): // Allow backwards chain

JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread Mahesh Gandhe
hi , I am writing the java code for the method so that the method could be invoked in the command line in jess. The code is as follows import jess.*;import java.lang.*; public class GreaterThan implements Userfunction {   public String getName() { return "my-upcase";}   public Value call (ValueVec

Re: JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread ejfried
>From Java you should use new Value(RU.ATOM, "TRUE") for true, and new Value(RU.ATOM, "FALSE") for false. As a shortcut, there are constants Funcall.TRUE and Funcall.FALSE in the jess.Funcall class. Note also that String constants in Java (and in Jess) use double quotes, no

RE: JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread Alan Moore
Try: Boolean ret = new Boolean(true); return new Value( ret, RU.EXTERNAL_ADDRESS ); Jess does not have a boolean in it's type system like it does for int and long. It does have the generic EXTERNAL_ADDRESS which can be any Object including Boolean. See the javadoc for the class RU or RU.java or

Re: JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread ejfried
See my other message, and manual section 2.6. Jess -does- have a boolean type. I think Alan Moore wrote: > Try: > > Boolean ret = new Boolean(true); > return new Value( ret, RU.EXTERNAL_ADDRESS ); > > Jess does not have a boolean in it's type system like it does for int and > long. It does hav

Re: JESS: java.lang.Boolean to Jess Boolean

2001-11-27 Thread Mahesh Gandhe
hi , thanks a ton. The code is working fine and my problem is solved. Regards, Mahesh G.   [EMAIL PROTECTED] wrote: From Java you should use new Value(RU.ATOM, "TRUE")for true, and new Value(RU.ATOM, "FALSE")for false. As a shortcut, there are constants Funcall.TRUE andFuncall.FALSE in the jess.F