I think Mike Stacey wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I would like to run rules on the data from a data stream. Each data
> point is assessed by my rules and a context dependent category
> (temporal abstraction) is created depending on the data point's value
> and time stamp. Each point has a time stamp and a value.
> 
> I'd like to know the best way to do this. Do I read the stream using
> Java (in a loop) and call the rete engine to run its rules for each
> successive point? Or do I read say 100 values into an array, then
> call rete. Or do I do it straight from Jess, without Java?
> 
> Any suggestions would be greatly appreciated.


You can do the first thing, or you can use two threads: one that calls
Rete.runUntilHalt(), which fires all active rules, then sleeps until
new activations are available, and a second thread that asserts the
input data points as facts as they become available. Using two threads
would be slightly more complicated, but somewhat more efficient.

---------------------------------------------------------
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://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to