com.x8ing.lsm4j
Interface GraphListener

All Known Implementing Classes:
TracingGraphListener

public interface GraphListener

Will be notified if something happens on the graph. The listener must be registred on the observeable graph. see: ProcessableGraph.registerGraphListener(GraphListener)

The usage of this interface is optional.

Author:
Patrick Heusser

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)
           
 

Method Detail

startProcessingState

void startProcessingState(ProcessableState previousState,
                          Condition previosCondition,
                          long loop,
                          StateContext currentStateContext)

changedState

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.


foundEndState

void foundEndState(ProcessableState endState,
                   long loop,
                   StateContext currentStateContext)


by Patrick Heusser