You are overwriting the value each time you call store so you end
up only getting the last value when you call fetch. You need to do
something more like the following:
rete.executeCommand("(store RESULTS (new java.util.Vector))");
rete.executeCommand("(defrule Rule1 " +
" (likerithm ?X ?W) " +
" (sings ?Y ?W) " +
" (likeartist ?X ~?Y) " +
" =>" +
" (assert (likeartist ?X ?Y))" +
" (call (fetch RESULTS) addElement ?Y))");
Vector results = (Vector)rete.fetch("RESULTS");
Elias Holman
AI Software Engineer
Stottler Henke Associates, Inc.
http://www.shai.com
(781)643-0363
---------------------------------------------------------------------
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]
---------------------------------------------------------------------