Class TraversalListenerRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.interpreter.TraversalListenerRegistry<A,E>
-
public class TraversalListenerRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity> extends Object
-
-
Constructor Summary
Constructors Constructor Description TraversalListenerRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.List<ITraversalListener<A,E>>
getTraversalListenerList()
Map<A,List<ITraversalListener<A,E>>>
getTraversalListenerMap()
void
notifyAfterListener(A action, E request)
void
notifyBeforeListener(A action, E request)
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.void
removeTraversalListeners()
Removes allITraversalListener
s.
-
-
-
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 observedlistener
- 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 listenerlistener
- the listener that is to be unregistered
-
getTraversalListenerList
public List<ITraversalListener<A,E>> getTraversalListenerList()
-
removeTraversalListeners
public void removeTraversalListeners()
Removes allITraversalListener
s.
-
-