java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.sequence.pcm.PCMQueryUtils

public class PCMQueryUtils extends Object
  • Method Details

    • getStartActionOfScenarioBehavior

      public static Optional<org.palladiosimulator.pcm.usagemodel.Start> getStartActionOfScenarioBehavior(org.palladiosimulator.pcm.usagemodel.ScenarioBehaviour scenarioBehavior)
    • getFirstStartActionInActionList

      public static Optional<org.palladiosimulator.pcm.seff.StartAction> getFirstStartActionInActionList(List<org.palladiosimulator.pcm.seff.AbstractAction> actionList)
    • findStartActionsForUsageModel

      public static List<org.palladiosimulator.pcm.usagemodel.Start> findStartActionsForUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usageModel)
    • findParentOfType

      public static <T> Optional<T> findParentOfType(EObject object, Class<T> clazz, boolean includeSelf)
    • findCalledSEFF

      public static Optional<SEFFWithContext> findCalledSEFF(org.palladiosimulator.pcm.repository.ProvidedRole providedRole, org.palladiosimulator.pcm.repository.Signature calledSignature, Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      Finds a called SEFF and the corresponding stack of assembly contexts. It requires the context of the resolution process to be specified as stack of assembly contexts. The resulting stack can be completely different to the stack from which the call originated because composite components do not provide SEFFs but only contribute to the stack.
      Parameters:
      providedRole - The provided role that points to the identifying component.
      calledSignature - The signature that the SEFF describes.
      context - The stack of assembly contexts that identifies the point from which the call shall be resolved. The list starts with the most outer assembly context.
      Returns:
      A tuple of the resolved SEFF and the assembly context stack.
    • findCalledSEFF

      public static Optional<SEFFWithContext> findCalledSEFF(org.palladiosimulator.pcm.repository.RequiredRole requiredRole, org.palladiosimulator.pcm.repository.OperationSignature calledSignature, Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      Finds a called SEFF and the corresponding stack of assembly contexts. It requires the context of the resolution process to be specified as stack of assembly contexts. The resulting stack can be completely different to the stack from which the call originated because composite components do not provide SEFFs but only contribute to the stack.
      Parameters:
      requiredRole - The required role that points to the required component.
      calledSignature - The signature that the SEFF describes.
      context - The stack of assembly contexts that identifies the point from which the call shall be resolved. The list starts with the most outer assembly context.
      Returns:
      A tuple of the resolved SEFF and the assembly context stack.