jess.tools
Class PrintingListener

java.lang.Object
  extended by jess.tools.PrintingListener
All Implemented Interfaces:
java.util.EventListener, JessListener

public class PrintingListener
extends java.lang.Object
implements JessListener

A trivial JessListener which displays information about the event; useful for debugging.

(C) Sandia National Laboratories


Constructor Summary
PrintingListener()
           
 
Method Summary
 void eventHappened(JessEvent je)
          Called by a JessEvent source when something interesting happens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintingListener

public PrintingListener()
Method Detail

eventHappened

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

Specified by:
eventHappened in interface JessListener
Parameters:
je - an event object describing the event.
Throws:
JessException - if any problem occurs during event handling.

2013 Sandia Corporation