Class DebugUsageTraversalListener

  • All Implemented Interfaces:
    ITraversalListener<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>

    public class DebugUsageTraversalListener
    extends Object
    implements ITraversalListener<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>
    This listener prints a debug message whenever an AbstractUserAction is about to be traversed or when an action has been traversed completely. Call install() to activate this listener.

    Notice: This listener does only apply to actions contained in a usage scenario.

    • Constructor Detail

      • DebugUsageTraversalListener

        public DebugUsageTraversalListener()
    • Method Detail

      • before

        public void before​(org.palladiosimulator.pcm.usagemodel.AbstractUserAction action,
                           User who)
        Called by the BehaviourInterpreter when the specified action is about to be traversed by the given entity.
        Specified by:
        before in interface ITraversalListener<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>
        Parameters:
        action - the action that is traversed soon
        who - the entity that traverses the action
      • after

        public void after​(org.palladiosimulator.pcm.usagemodel.AbstractUserAction action,
                          User who)
        r Called by the BehaviourInterpreter when the specified action has been traversed completely by the given entity.
        Specified by:
        after in interface ITraversalListener<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>
        Parameters:
        action - the action that has been traversed
        who - the entity that has traversed the action