com.x8ing.lsm4j.std
Class TracingGraphListener

java.lang.Object
  extended by com.x8ing.lsm4j.std.TracingGraphListener
All Implemented Interfaces:
GraphListener

public class TracingGraphListener
extends java.lang.Object
implements GraphListener

A default listener implementation which just traces out some information to the console or a specified PrintStream.

Author:
Patrick Heusser

Constructor Summary
TracingGraphListener()
           
TracingGraphListener(java.io.PrintStream output)
           
 
Method Summary
 void changedState(ProcessableState previousState, ProcessableState currentState, Condition previousCondition, Condition currentCondition, long loop, StateContext currentStateContext)
          The listener will be notified using this message, if the graph changed it's state.
 void foundEndState(ProcessableState endState, long loop, StateContext currentStateContext)
           
 void startProcessingState(ProcessableState previousState, Condition previosCondition, long loop, StateContext currentStateContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracingGraphListener

public TracingGraphListener(java.io.PrintStream output)

TracingGraphListener

public TracingGraphListener()
Method Detail

changedState

public void changedState(ProcessableState previousState,
                         ProcessableState currentState,
                         Condition previousCondition,
                         Condition currentCondition,
                         long loop,
                         StateContext currentStateContext)
Description copied from interface: GraphListener
The listener will be notified using this message, if the graph changed it's state.

Specified by:
changedState in interface GraphListener

startProcessingState

public void startProcessingState(ProcessableState previousState,
                                 Condition previosCondition,
                                 long loop,
                                 StateContext currentStateContext)
Specified by:
startProcessingState in interface GraphListener

foundEndState

public void foundEndState(ProcessableState endState,
                          long loop,
                          StateContext currentStateContext)
Specified by:
foundEndState in interface GraphListener


by Patrick Heusser