Class PCMInstanceHelper


  • public class PCMInstanceHelper
    extends Object
    This class provides auxiliary functionality factored out from the ContextWrapper for examining PCM instances. TODO: continue the outsourcing to separate context-independent tasks from the ContextWrapper class!
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts​(org.palladiosimulator.pcm.seff.ExternalCallAction call, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts)
      Searches for the providing AssemblyContexts that handle the given ExternalCallAction.
      static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts​(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call, org.palladiosimulator.pcm.system.System system)
      Retrieves the list of nested handling AssemblyContexts for the given EntryLevelSystemCall.
    • Constructor Detail

      • PCMInstanceHelper

        public PCMInstanceHelper()
    • Method Detail

      • getHandlingAssemblyContexts

        public static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts​(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call,
                                                                                                                   org.palladiosimulator.pcm.system.System system)
        Retrieves the list of nested handling AssemblyContexts for the given EntryLevelSystemCall. A handling AssemblyContext is one that includes the executing behavior triggered by the call.
        Parameters:
        call - the EntryLevelSystemCall
        system - the involved System instance
        Returns:
        the list of nested handling AssemblyContexts
      • getHandlingAssemblyContexts

        public static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts​(org.palladiosimulator.pcm.seff.ExternalCallAction call,
                                                                                                                   List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts)
        Searches for the providing AssemblyContexts that handle the given ExternalCallAction. If the ExternalCallAction is a system external call, the method returns an empty list. If the providing side is a nested structure of AssemblyContexts, all providing AssemblyContexts are returned in a list, with the actual handling context as the last element.
        Parameters:
        call - the ExternallCallAction
        encapsulatingContexts - the list of encapsulating AssemblyContexts of the ExternalCallAction (required for its unique identification)
        Returns:
        the list of nested handling AssemblyContexts