com.evelopers.unimod.debug.app
Class EventProcessorEventProvider

java.lang.Object
  extended bycom.evelopers.unimod.runtime.AbstractEventProcessorListener
      extended bycom.evelopers.unimod.debug.app.EventProcessorEventProvider
All Implemented Interfaces:
EventProcessorListener, EventProvider

public class EventProcessorEventProvider
extends AbstractEventProcessorListener
implements EventProvider

EventProvider for app-side debugger engine. Listens debuggable engine for event processing and notifies about these event debugger engine. Reacts only on events types defined in BreakpointPositions.


Field Summary
static java.lang.String E21
           
static java.lang.String E22
           
 
Constructor Summary
EventProcessorEventProvider()
           
 
Method Summary
 void beforeInputActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String transition, java.lang.String inputAction)
          Input action will be executed
 void beforeOnEnterActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String state, java.lang.String outputAction)
          Output action will be executed
 void beforeOutputActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String transition, java.lang.String outputAction)
          Output action will be executed
 void beforeSubmachineExecution(StateMachineContext context, Event e, StateMachinePath path, java.lang.String state, java.lang.String subMachine)
          Submachines of the active state will be executed with event e.
 void comeToState(StateMachineContext context, StateMachinePath path, java.lang.String state)
          Come to some state
 void dispose()
          Called on sthutdown.
 void eventProcessingStarted(StateMachineContext context, Event e, StateMachinePath path, StateMachineConfig c)
          Event processor started processing of event e.
protected  ThreadInfo getThreadInfo()
           
 void init(ModelEngine engine)
          Called on engine start-up
 void stateMachineCameToFinalState(StateMachineContext context, StateMachinePath path, StateMachineConfig config)
          Debuggable engine come to final state
protected  void suspendThread()
          Suspends event dispatch thread of engine that is being debugged, if ThreadManager wants it, until ThreadManager resumes thread.
 void transitionCandidate(StateMachineContext context, StateMachinePath path, java.lang.String state, Event event, java.lang.String transition)
          Examine transition if it may be selected as transition to go
 
Methods inherited from class com.evelopers.unimod.runtime.AbstractEventProcessorListener
afterInputActionExecution, afterOnEnterActionExecution, afterOutputActionExecution, afterSubmachineExecution, compositeTargetState, eventProcessingFinished, eventSkipped, transitionFound, transitionNotFound, transitionsOfSuperstate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E21

public static final java.lang.String E21
See Also:
Constant Field Values

E22

public static final java.lang.String E22
See Also:
Constant Field Values
Constructor Detail

EventProcessorEventProvider

public EventProcessorEventProvider()
Method Detail

init

public void init(ModelEngine engine)
Description copied from interface: EventProvider
Called on engine start-up

Specified by:
init in interface EventProvider
Parameters:
engine - that will be notified about events.

dispose

public void dispose()
Description copied from interface: EventProvider
Called on sthutdown. If some threads was started by event provider they must be stopped here.

Specified by:
dispose in interface EventProvider

suspendThread

protected void suspendThread()
Suspends event dispatch thread of engine that is being debugged, if ThreadManager wants it, until ThreadManager resumes thread. Must be called at the end of every method of EventProcessorListener.


getThreadInfo

protected ThreadInfo getThreadInfo()

stateMachineCameToFinalState

public void stateMachineCameToFinalState(StateMachineContext context,
                                         StateMachinePath path,
                                         StateMachineConfig config)
Debuggable engine come to final state

Specified by:
stateMachineCameToFinalState in interface EventProcessorListener
Overrides:
stateMachineCameToFinalState in class AbstractEventProcessorListener

beforeInputActionExecution

public void beforeInputActionExecution(StateMachineContext context,
                                       StateMachinePath path,
                                       java.lang.String transition,
                                       java.lang.String inputAction)
Description copied from interface: EventProcessorListener
Input action will be executed

Specified by:
beforeInputActionExecution in interface EventProcessorListener
Overrides:
beforeInputActionExecution in class AbstractEventProcessorListener

beforeOnEnterActionExecution

public void beforeOnEnterActionExecution(StateMachineContext context,
                                         StateMachinePath path,
                                         java.lang.String state,
                                         java.lang.String outputAction)
Description copied from interface: EventProcessorListener
Output action will be executed

Specified by:
beforeOnEnterActionExecution in interface EventProcessorListener
Overrides:
beforeOnEnterActionExecution in class AbstractEventProcessorListener

beforeOutputActionExecution

public void beforeOutputActionExecution(StateMachineContext context,
                                        StateMachinePath path,
                                        java.lang.String transition,
                                        java.lang.String outputAction)
Description copied from interface: EventProcessorListener
Output action will be executed

Specified by:
beforeOutputActionExecution in interface EventProcessorListener
Overrides:
beforeOutputActionExecution in class AbstractEventProcessorListener

beforeSubmachineExecution

public void beforeSubmachineExecution(StateMachineContext context,
                                      Event e,
                                      StateMachinePath path,
                                      java.lang.String state,
                                      java.lang.String subMachine)
Description copied from interface: EventProcessorListener
Submachines of the active state will be executed with event e.

Specified by:
beforeSubmachineExecution in interface EventProcessorListener
Overrides:
beforeSubmachineExecution in class AbstractEventProcessorListener

transitionCandidate

public void transitionCandidate(StateMachineContext context,
                                StateMachinePath path,
                                java.lang.String state,
                                Event event,
                                java.lang.String transition)
Description copied from interface: EventProcessorListener
Examine transition if it may be selected as transition to go

Specified by:
transitionCandidate in interface EventProcessorListener
Overrides:
transitionCandidate in class AbstractEventProcessorListener

eventProcessingStarted

public void eventProcessingStarted(StateMachineContext context,
                                   Event e,
                                   StateMachinePath path,
                                   StateMachineConfig c)
Description copied from interface: EventProcessorListener
Event processor started processing of event e.

Specified by:
eventProcessingStarted in interface EventProcessorListener
Overrides:
eventProcessingStarted in class AbstractEventProcessorListener

comeToState

public void comeToState(StateMachineContext context,
                        StateMachinePath path,
                        java.lang.String state)
Description copied from interface: EventProcessorListener
Come to some state

Specified by:
comeToState in interface EventProcessorListener
Overrides:
comeToState in class AbstractEventProcessorListener