JESS: Logical dependency bug?

2006-02-02 Thread Yura
Hi jess-users Don't know whether it's a bug but after (deffunction fun () (assert (b 2))) (defrule rule (logical (a))=>(assert (b 1))) (defrule rule2 (logical (a))=>(fun)) (assert (a)) (run) (retract 0) deletes only (a) and (b 1). (b 2) doesn't seem to have a logical dependency on (a). Yuri --

JESS: Re: Rules and Program Logic

2006-01-14 Thread Yura
Yes, that's all true. But I think that only really simple domains can be described using plain rulesets. Unfortunately, I don't know any non-salience way to represent metaknowledge in CLIPS-like systems. Yuri To unsubscribe, sen

JESS: Jess: salience

2006-01-13 Thread Yura
> (set-salience-evaluation every-cycle) I think that would be really slow. However the problem is quite common, so probably we may use some Java API to reevaluate the salience just once. The question is which one. Yuri To unsub

JESS: Bug?

2005-12-08 Thread Yura
Hi jess-users JessDE doesn't parse this rule (saying: 'TRUE' is a symbol, not an integer): (defrule rule (declare (salience (+ 1 1))) => ) whereas Jesp makes no complaints. Yuri To unsubscribe, send the words 'unsubscribe jes

JESS: Re: Bug

2005-12-02 Thread Yura
I'm sorry - it's there in the manual. I should be more attentive. Yuri 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 addres

JESS: Bug?

2005-12-02 Thread Yura
Well say I have this rule (defrule rule (declare ) =>) When I type "(" inside "(declare)" I receive auto-loop, no-focus,node-index-hash and salience. After manually inserting "slot-specific" I receive error. I'm using Jess70b4, my Eclipse is 3.1.1. At any rate I'd like to ask a more serious ques

JESS: Bug

2005-12-02 Thread Yura
JessDE doesn't accept "slot-specific" declarations. Yuri 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 probl

JESS: Multimap throws exception

2005-11-26 Thread Yura
Hi jess-users Is this ok that jess.Multimap doesn't implement Serializable? It throws java.io.NotSerializableException on issuing 'bsave'. Yuri To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BO

JESS: Editor couldn't be initialized

2005-11-23 Thread Yura
Hi jess-users I'm receiving the "Editor couldn't be initialized" when trying to open clp-files in Jess70b4-editor (yes, I tried the -clean switch). Jess70b3 works well. Can anybody help? Yuri To unsubscribe, send the words 'uns

Re: JESS: Object to built-in type

2005-11-18 Thread Yura
Thanks a lot - intValue works fine.   Yuri

JESS: Object to built-in type

2005-11-18 Thread Yura
Hi jess-users   Is there any way to convert Java object to one of the predefined Jess types (e.g. I need to convert Object which is actually Integer to RU.INTEGER).   Yuri

JESS: Converting Object to Object[]

2005-11-17 Thread Yura
Hi jess-users   Is there any way 2 convert Object to Object[]? I need 2 pass several arrays from Java to Jess so I wrapped them in a Vector. But executing     (call ?vector get 0) returns just     I can write some wrapper like     Object[] obj2array(Object) but probably Jess can handle such

Re: JESS: Accumulate-CE problem

2005-10-13 Thread Yura
> Although the last "argument" of the accumulate CE is documented as a > conditional element, it's actually coded as if it must be a pattern -- > i.e., a single patterm, no "and", "or", or "not." I'm having trouble > imagining a tractable implementation that allows you to use a general > conditiona

JESS: Accumulate-CE problem

2005-10-11 Thread Yura
Hi   I've got the following problem with accumulate-CE. The following code works fine:   (clear)   (deftemplate smth (slot anyth))   (deffacts facts (smth (anyth "x")) (smth (anyth "y")))   (defrule rule  ?data <- (accumulate    (bind ?result (create$))    (bind ?result  (create$ ?resul

JESS: For-loop bug

2005-10-10 Thread Yura
Hi   I think there is a bug in the 'for'-loop implementation. The following code returns '1' (incorrect):   (bind ?x 1)(for (bind ?i 1) (< ?i 2) (++ ?i)   (bind ?x (float ?x))   (printout t "?x == " ?x crlf))?x   When I comment out the 'for'-block the _expression_ evaluates to '1.0' (correct

JESS: Matrixes in Jess

2005-09-30 Thread Yura
Hi All   Does anyone know how to implement matrixes in Jess?   Yuri

JESS: Problem with "not CE"

2005-09-13 Thread Yura
Hi everyoneI've got some strange problem with Jess engine. A simple code below illustrates it. The code iteratevily forms a sorted list. It does this quite well when the number of entities is small enough (<=10). But as it increases Jess engine failes to find matches (I've tried 7.0b2).(clear