Class PcmQueryUtils


  • public class PcmQueryUtils
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PcmQueryUtils()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <T> Stack<T> copy​(Stack<T> stack)  
      SeffWithContext findCalledSeff​(org.palladiosimulator.pcm.repository.ProvidedRole providedRole, org.palladiosimulator.pcm.repository.Signature calledSignature, Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      Finds a called SEFF and the corresponding stack of assembly contexts.
      SeffWithContext findCalledSeff​(org.palladiosimulator.pcm.repository.RequiredRole requiredRole, org.palladiosimulator.pcm.repository.Signature calledSignature, Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> contexts)
      Finds a called SEFF and the corresponding stack of assembly contexts.
      protected Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.indirections.composition.AssemblyDataConnector connector, Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)  
      Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.indirections.repository.DataSourceRole emittingRole, Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)  
      protected Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.pcm.repository.RepositoryComponent sinkComponent, org.palladiosimulator.indirections.repository.DataSinkRole sinkRole, Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)  
      protected org.palladiosimulator.pcm.core.composition.ProvidedDelegationConnector findProvidedDelegationConnector​(org.palladiosimulator.pcm.core.composition.ComposedStructure component, org.palladiosimulator.pcm.repository.ProvidedRole outerRole)  
      org.palladiosimulator.pcm.seff.StopAction getStopAction​(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF seff)  
    • Constructor Detail

      • PcmQueryUtils

        public PcmQueryUtils()
    • Method Detail

      • findCalledSeff

        public SeffWithContext findCalledSeff​(org.palladiosimulator.pcm.repository.RequiredRole requiredRole,
                                              org.palladiosimulator.pcm.repository.Signature calledSignature,
                                              Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> contexts)
        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.
      • findCalledSeff

        public SeffWithContext findCalledSeff​(org.palladiosimulator.pcm.repository.ProvidedRole providedRole,
                                              org.palladiosimulator.pcm.repository.Signature calledSignature,
                                              Stack<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.
      • findProvidedDelegationConnector

        protected org.palladiosimulator.pcm.core.composition.ProvidedDelegationConnector findProvidedDelegationConnector​(org.palladiosimulator.pcm.core.composition.ComposedStructure component,
                                                                                                                         org.palladiosimulator.pcm.repository.ProvidedRole outerRole)
      • getStopAction

        public org.palladiosimulator.pcm.seff.StopAction getStopAction​(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF seff)
      • findDestinations

        public Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.indirections.repository.DataSourceRole emittingRole,
                                                                  Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      • findDestinations

        protected Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.indirections.composition.AssemblyDataConnector connector,
                                                                     Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      • findDestinations

        protected Iterable<OutgoingDataDestination> findDestinations​(org.palladiosimulator.pcm.repository.RepositoryComponent sinkComponent,
                                                                     org.palladiosimulator.indirections.repository.DataSinkRole sinkRole,
                                                                     Stack<org.palladiosimulator.pcm.core.composition.AssemblyContext> context)
      • copy

        protected <T> Stack<T> copy​(Stack<T> stack)