I think Eric Jain wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Is there something like
> 
>   engine.executeCommand(Reader)
> 
> for executing a set of commands from a file without having to process
> the file first? I am aware of jess.Main, but need similar functionality
> from within a Java application.
> 

Use the Jess parser class jess.Jesp:

Reader reader = ...
Rete engine = ...

new Jesp(reader, engine).parse(false);

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems 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