ReteDisplay is way past deprecated -- it was removed years ago. I dug
out an old copy from CVS, appended below. There's not much information
there. Basically you implement this interface and the methods are
called at the obvious time: AssertFact is called when a fact is
asserted, etc. You implement stout(), stdin(), stderr() to provide
these streams to Jess. Nowadays you use the router-table methods in
the Rete class to set up I/O streams.

One reason (of many) why this was scrapped was that the semantics
weren't clear. Some of these methods were called before the
referred-to event happened, and some after.


public interface ReteDisplay {

  public void AssertFact(ValueVector fact);
  public void RetractFact(ValueVector fact);

  public void AddDeffacts(Deffacts df);
  public void AddDeftemplate(Deftemplate dt);

  public void AddDefrule(Defrule rule);
  public void ActivateRule(Defrule rule);
  public void DeactivateRule(Defrule rule);
  public void FireRule(Defrule rule);

  public java.io.PrintStream stdout();
  public java.io.InputStream stdin();
  public java.io.PrintStream stderr();

  public java.applet.Applet applet();

}             


I think Scott Duguid wrote:
> Hi all
> 
> I'm adapting some code that relies upon the now deprecated ReteDisplay. 
> Obviously the way to proceed is to use the JessListener interface and other 
> relevant classes, but does anyone have the API docs for the ReteDisplay 
> class? The manual does not list any of Jess's deprecated classes. The reason 
> I need to know is that I think the programmer before me has used ReteDisplay 
> reasonably frequently, and I need to know what code needs to be cut or 
> adapted. Having the API docs would help me to understand the implementation 
> better, since while the code seems to be good, it is virtually comment-free. 
> Any help would be greatly appreciated.
> 
> Scott Duguid
> 
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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