Hi again!
This was your rule:
> (defclass aclass A)
> (defrule somerule
> ?a <- (aclass (OBJECT ?o))
> (test (> (call (call ?o getVectorBasedOnSomeConditions 5) size) 0))
> =>
> (printout .....)
> )
Readers of the Jess Manual ;-) will recall, that
(bind <variable> <expression>)
assigns <expression> to <variable> and returns the given value. Therefore,
you can modify your rule as follows:
(defrule somerule
?a <- (aclass (OBJECT ?o))
(test (< (call (bind ?vector (call ?o getVectorBasedOnSomeConditions 5))
size) 0))
=>
(printout t "Size = " (call ?vector size) crlf))
Hope that helps.
Thomas
________________________________
Dipl.-Inform. Thomas Barnekow
Fraunhofer IAO, Competence Center Software Technology
mail: Nobelstra�e 12, D-70569 Stuttgart,
Germany
phone: +49 (0) 711 / 970 - 2346
fax: +49 (0) 711 / 970 - 2300
mobile: +49 (0) 172 / 7126018
email: [EMAIL PROTECTED]
web: http://www.swt.iao.fhg.de
---------------------------------------------------------------------
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]
---------------------------------------------------------------------