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
---
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
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
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
unsubscribe
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
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
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]
---
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:
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
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
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
>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
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
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
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
16 matches
Mail list logo