com.evelopers.unimod.runtime
Interface EventProcessorListener

All Known Implementing Classes:
AbstractEventProcessorListener

public interface EventProcessorListener

Interface for pluggable runtime units.

Note, that all String parameters must sutisfy CoreContract, i.e. there must be ability to convert them into real model objects using methods of class CoreContract


Method Summary
 void afterInputActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String transition, java.lang.String inputAction, java.lang.String value)
          Input action was executed
 void afterOnEnterActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String state, java.lang.String outputAction)
          Output action was executed
 void afterOutputActionExecution(StateMachineContext context, StateMachinePath path, java.lang.String transition, java.lang.String outputAction)
          Output action was executed
 void afterSubmachineExecution(StateMachineContext context, Event event, StateMachinePath path, java.lang.String state, java.lang.String subMachine)
          Submachines of the active state was executed with event e.
 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 compositeTargetState(StateMachineContext context, StateMachinePath path, java.lang.String state)
          Target state is composite
 void eventProcessingFinished(StateMachineContext context, Event e, StateMachinePath path, StateMachineConfig c)
          Event processor finished processing of event e.
 void eventProcessingStarted(StateMachineContext context, Event e, StateMachinePath path, StateMachineConfig c)
          Event processor started processing of event e.
 void eventSkipped(StateMachineContext context, StateMachinePath path, java.lang.String state, Event event)
          Transition to go was not found.
 void stateMachineCameToFinalState(StateMachineContext context, StateMachinePath path, StateMachineConfig config)
          Root state machine came to final state.
 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
 void transitionFound(StateMachineContext context, StateMachinePath path, java.lang.String state, Event event, java.lang.String transition)
          Transition to go was found
 void transitionNotFound(StateMachineContext context, StateMachinePath path, java.lang.String state, Event event)
          Transition to go was not found.
 void transitionsOfSuperstate(StateMachineContext context, StateMachinePath path, java.lang.String superstate, Event event)
          Transition to go was not found, try transitions of superstate
 

Method Detail

eventProcessingStarted

public void eventProcessingStarted(StateMachineContext context,
                                   Event e,
                                   StateMachinePath path,
                                   StateMachineConfig c)
Event processor started processing of event e.

Parameters:
e - event that will be processed
path -
c - config of state machine before event processing

eventProcessingFinished

public void eventProcessingFinished(StateMachineContext context,
                                    Event e,
                                    StateMachinePath path,
                                    StateMachineConfig c)
Event processor finished processing of event e.

Parameters:
e - processed event
path -
c - config of state machine after event processing

stateMachineCameToFinalState

public void stateMachineCameToFinalState(StateMachineContext context,
                                         StateMachinePath path,
                                         StateMachineConfig config)
Root state machine came to final state.


beforeSubmachineExecution

public 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.

Parameters:
e - event that will be processed by submachines
path -
subMachine - submachine that is about to execute

afterSubmachineExecution

public void afterSubmachineExecution(StateMachineContext context,
                                     Event event,
                                     StateMachinePath path,
                                     java.lang.String state,
                                     java.lang.String subMachine)
Submachines of the active state was executed with event e.

Parameters:
event - event that was processed by submachines
path -
subMachine - submachine that was executed

beforeOnEnterActionExecution

public void beforeOnEnterActionExecution(StateMachineContext context,
                                         StateMachinePath path,
                                         java.lang.String state,
                                         java.lang.String outputAction)
Output action will be executed

Parameters:
path -

afterOnEnterActionExecution

public void afterOnEnterActionExecution(StateMachineContext context,
                                        StateMachinePath path,
                                        java.lang.String state,
                                        java.lang.String outputAction)
Output action was executed

Parameters:
path -

beforeOutputActionExecution

public void beforeOutputActionExecution(StateMachineContext context,
                                        StateMachinePath path,
                                        java.lang.String transition,
                                        java.lang.String outputAction)
Output action will be executed

Parameters:
path -
transition -

afterOutputActionExecution

public void afterOutputActionExecution(StateMachineContext context,
                                       StateMachinePath path,
                                       java.lang.String transition,
                                       java.lang.String outputAction)
Output action was executed

Parameters:
path -
transition -

beforeInputActionExecution

public void beforeInputActionExecution(StateMachineContext context,
                                       StateMachinePath path,
                                       java.lang.String transition,
                                       java.lang.String inputAction)
Input action will be executed

Parameters:
path -
transition -

afterInputActionExecution

public void afterInputActionExecution(StateMachineContext context,
                                      StateMachinePath path,
                                      java.lang.String transition,
                                      java.lang.String inputAction,
                                      java.lang.String value)
Input action was executed

Parameters:
path -
transition -
value - calculated value of input action

transitionCandidate

public 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

Parameters:
path -
state - source state's name
event - trigged event
transition - transition to examine

transitionsOfSuperstate

public void transitionsOfSuperstate(StateMachineContext context,
                                    StateMachinePath path,
                                    java.lang.String superstate,
                                    Event event)
Transition to go was not found, try transitions of superstate

Parameters:
path -
superstate - super state's name
event - trigged event

transitionFound

public void transitionFound(StateMachineContext context,
                            StateMachinePath path,
                            java.lang.String state,
                            Event event,
                            java.lang.String transition)
Transition to go was found

Parameters:
path -
state - source state's name
event - trigged event
transition - transition to go

transitionNotFound

public void transitionNotFound(StateMachineContext context,
                               StateMachinePath path,
                               java.lang.String state,
                               Event event)
Transition to go was not found. Bad model.

Parameters:
path -
state - source state's name
event - trigged event

eventSkipped

public void eventSkipped(StateMachineContext context,
                         StateMachinePath path,
                         java.lang.String state,
                         Event event)
Transition to go was not found. Given event isn't handled in the state or its superstates. And transitions for ANY event outgoing from the state or its superstates. So transition is internal and event is skipped.

Parameters:
path - path to state machine containing the state
state - source state's name
event - trigged event

compositeTargetState

public void compositeTargetState(StateMachineContext context,
                                 StateMachinePath path,
                                 java.lang.String state)
Target state is composite

Parameters:
path -
state - target state's name

comeToState

public void comeToState(StateMachineContext context,
                        StateMachinePath path,
                        java.lang.String state)
Come to some state

Parameters:
path -
state -