Class TraversalListenerRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,​E extends EventSimEntity>


  • public class TraversalListenerRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,​E extends EventSimEntity>
    extends Object
    • Constructor Detail

      • TraversalListenerRegistry

        public TraversalListenerRegistry()
    • Method Detail

      • addTraversalListener

        public void addTraversalListener​(A action,
                                         ITraversalListener<A,​E> listener)
        Adds a traversal listener that is notified whenever the specified action is about to be traversed or has been traversed completely.
        Parameters:
        action - the action that is to be observed
        listener - the listener that is to be registered
      • addTraversalListener

        public void addTraversalListener​(ITraversalListener<A,​E> listener)
        Adds a traversal listener that is notified whenever an arbitrary action is about to be traversed or has been traversed completely.
        Parameters:
        listener - the listener that is to be registered
      • removeTraversalListener

        public void removeTraversalListener​(org.palladiosimulator.pcm.seff.AbstractAction action,
                                            ITraversalListener<A,​E> listener)
        Removes the specified traversal listener that has been registered to listen for traversal events associated with the specified action.
        Parameters:
        action - the action that is observed by the specified listener
        listener - the listener that is to be unregistered
      • removeTraversalListeners

        public void removeTraversalListeners()
        Removes all ITraversalListeners.
      • notifyAfterListener

        public void notifyAfterListener​(A action,
                                        E request)
      • notifyBeforeListener

        public void notifyBeforeListener​(A action,
                                         E request)