com.evelopers.unimod.runtime.logger
Class ShortLogger

java.lang.Object
  extended bycom.evelopers.unimod.runtime.AbstractEventProcessorListener
      extended bycom.evelopers.unimod.runtime.logger.ShortLogger
All Implemented Interfaces:
EventProcessorListener

public class ShortLogger
extends AbstractEventProcessorListener


Constructor Summary
ShortLogger(Logger logger)
           
 
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 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 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.
protected  java.lang.String getShift(StateMachinePath path)
           
 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.
protected  java.lang.String translateTransition(java.lang.String transition)
           
 
Methods inherited from class com.evelopers.unimod.runtime.AbstractEventProcessorListener
afterSubmachineExecution, beforeSubmachineExecution, comeToState, compositeTargetState, eventSkipped, stateMachineCameToFinalState, transitionCandidate, transitionsOfSuperstate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortLogger

public ShortLogger(Logger logger)
Method Detail

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

eventProcessingFinished

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

Specified by:
eventProcessingFinished in interface EventProcessorListener
Overrides:
eventProcessingFinished 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

afterOnEnterActionExecution

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

Specified by:
afterOnEnterActionExecution in interface EventProcessorListener
Overrides:
afterOnEnterActionExecution 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

afterOutputActionExecution

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

Specified by:
afterOutputActionExecution in interface EventProcessorListener
Overrides:
afterOutputActionExecution 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

afterInputActionExecution

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

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

transitionFound

public void transitionFound(StateMachineContext context,
                            StateMachinePath path,
                            java.lang.String state,
                            Event event,
                            java.lang.String transition)
Description copied from interface: EventProcessorListener
Transition to go was found

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

transitionNotFound

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

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

getShift

protected java.lang.String getShift(StateMachinePath path)

translateTransition

protected java.lang.String translateTransition(java.lang.String transition)