java.lang.Object
org.palladiosimulator.pcm.confidentiality.context.scenarioanalysis.helpers.PCMInstanceHelper

public class PCMInstanceHelper extends Object
This class was copied from Palladio-Analyzer-Solver and the bundle org.palladiosimulator.solver https://github.com/PalladioSimulator/Palladio-Analyzer-Solver/tree/master/bundles/org.palladiosimulator.solver/src/org/palladiosimulator/solver/transformations This was done to avoid a dependency on the solver package 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!
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.palladiosimulator.pcm.core.composition.AssemblyConnector
    getAssemblyConnectorForExternalCall(org.palladiosimulator.pcm.seff.ExternalCallAction call, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts)
    Searches for an AssemblyConnector that connects the current AssemblyContext via its given ExternalCallAction.
    static org.palladiosimulator.pcm.core.composition.Connector
    getHandlingAssemblyConnector(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call, org.palladiosimulator.pcm.system.System system)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PCMInstanceHelper

      public PCMInstanceHelper()
  • Method Details

    • 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
    • getHandlingAssemblyConnector

      public static org.palladiosimulator.pcm.core.composition.Connector getHandlingAssemblyConnector(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call, org.palladiosimulator.pcm.system.System system)
    • 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
    • getAssemblyConnectorForExternalCall

      public static org.palladiosimulator.pcm.core.composition.AssemblyConnector getAssemblyConnectorForExternalCall(org.palladiosimulator.pcm.seff.ExternalCallAction call, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts)
      Searches for an AssemblyConnector that connects the current AssemblyContext via its given ExternalCallAction. The current AssemblyContext is the last element in the AssemblyContext list
      Parameters:
      call - the ExternalCallAction
      encapsulatingContexts - the current AssemblyContext
      Returns:
      the AssemblyConnector, or NULL if the ExternalCallAction leads to the system boundary