On Dec 2, 2006, at 2:28 AM, Skeptic 2000 wrote:
Hi,
I have a serious problem with accumulate, I wanted to use it on
some shadow facts, but I noticed that I can't have more than one
"contained CE".
Yes, that's a limitation of the current implementation; it should be
lifted for Jess 7.1.
Something like (modifed from the manual):
?c <- (accumulate (bind ?list (new java.util.ArrayList))
(?list add ?o)
?list
(employee (OBJECT ?o))
(test (?o xyzMethod "arg1")) ; <- that can't work
if I understand correctly :(
=>
(printout t (?c toString) crlf))
In this case, there would be no problem with just adding the call to
xyzMethod to the employee CE directly -- i.e.,
(employee (OBJECT ?o&:(?o xyzMethod "arg1")))
-------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------