jess
Interface JessListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
JessEventAdapter, Rete

public interface JessListener
extends java.util.EventListener

JessListener is a notification interface for Jess events. Objects that wish to be notified of significant happenings in a Jess engine should implement this interface, then register themselves with a Rete object using Rete.addJessListener().

(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories

Author:
Ernest J. Friedman-Hill
See Also:
JessEvent, Rete.addJessListener(jess.JessListener), Rete.removeJessListener(jess.JessListener)

Method Summary
 void eventHappened(JessEvent je)
          Called by a JessEvent source when something interesting happens.
 

Method Detail

eventHappened

public void eventHappened(JessEvent je)
                   throws JessException
Called by a JessEvent source when something interesting happens. The typical implementation of eventHappened will switch on the return value of je.getType().

Parameters:
je - an event object describing the event.
Throws:
JessException - if any problem occurs during event handling.

© 2001 E.J. Friedman-Hill and Sandia Corporation