Hi,
   
  The Drools website refers to "Rete-oo", but I'm not sure I understand it 
correctly ... especailly the "Extract Node" (mentioned in the documentation).
   
  Suppose I have a class "Stock" which encapsulates some data 
  (for simplicity, I use only Objects, eg "java.lang.Double" ):
   
     class Stock{
            Double  price;
            Double  expectedProfit;
            Double  risk;
     }
   
  Now, suppose I want to do 
      "assertObject(someStock)"
  But I was the stock to enter the Rete as a Tuple of length 3  (price, profit, 
 risk) , rather than Tuple of length 1  (just 1 Stock encapsulating everything).
  I understand the 3-tuple approach might give better performance, especially 
if you're about to play around with just one of the attributes (e.g. run the 
same simulation over and over again, each time with just a different "risk", 
while everything else remains fixed).
   
  Is that what the Extract Node does ?
  If so, how do you cause it to work - what exactly should you put in the < 
parameter > part of the rule ?
   
  Thanks very much.

                        
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

Reply via email to