Interface ITraversalListener<A extends org.palladiosimulator.pcm.core.entity.Entity,​E extends EventSimEntity>

  • Type Parameters:
    A - the least common parent type of all actions that are to be traversed
    E - the type of the entity whose behaviour is simulated by the traversal
    All Known Implementing Classes:
    AbstractExternalCallListener, DebugSeffTraversalListener, DebugUsageTraversalListener, SimSlowdown

    public interface ITraversalListener<A extends org.palladiosimulator.pcm.core.entity.Entity,​E extends EventSimEntity>
    A traversal listener observes subclasses of BehaviourInterpreter for their traversal progress. Whenever an action is about to be traversed or has been traversed completely, the BehaviourTraversal notifies its observers by calling either the before or the after method on the listeners.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void after​(A action, E entity)
      Called by the BehaviourInterpreter when the specified action has been traversed completely by the given entity.
      void before​(A action, E entity)
      Called by the BehaviourInterpreter when the specified action is about to be traversed by the given entity.
    • Method Detail

      • before

        void before​(A action,
                    E entity)
        Called by the BehaviourInterpreter when the specified action is about to be traversed by the given entity.
        Parameters:
        action - the action that is traversed soon
        entity - the entity that traverses the action
      • after

        void after​(A action,
                   E entity)
        Called by the BehaviourInterpreter when the specified action has been traversed completely by the given entity.
        Parameters:
        action - the action that has been traversed
        entity - the entity that has traversed the action