Class FindAssemblyContextForSystemCall

  • All Implemented Interfaces:
    ICommand<org.palladiosimulator.pcm.core.composition.AssemblyContext,​PCMModel>, IPCMCommand<org.palladiosimulator.pcm.core.composition.AssemblyContext>

    public class FindAssemblyContextForSystemCall
    extends Object
    implements IPCMCommand<org.palladiosimulator.pcm.core.composition.AssemblyContext>
    This command returns the AssemblyContext that provides a specified EntryLevelSystemCall. More precisely, the AssemblyContext is returned that is wired to the system's OperationProvidedRole which is called by the EntryLevelSystemCall.
    • Constructor Detail

      • FindAssemblyContextForSystemCall

        public FindAssemblyContextForSystemCall​(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call)
        Constructs a new command that returns the AssemblyContext providing the specified call.
        Parameters:
        call - the call, for which the providing AssemblyContext is to be searched
    • Method Detail

      • execute

        public org.palladiosimulator.pcm.core.composition.AssemblyContext execute​(PCMModel pcm,
                                                                                  ICommandExecutor<PCMModel> executor)
        Executes the operation encapsulated by this class.

        Notice: This method is not intended to be called by clients. Use a ICommandExecutor instead to execute the operation.

        Specified by:
        execute in interface ICommand<org.palladiosimulator.pcm.core.composition.AssemblyContext,​PCMModel>
        Parameters:
        pcm - the model
        executor - the ICommandExecutor that currently executes this operation. Use this reference to invoke sub-operations also implementing this ICommand interface.
        Returns:
      • cachable

        public boolean cachable()
        Specified by:
        cachable in interface ICommand<org.palladiosimulator.pcm.core.composition.AssemblyContext,​PCMModel>
        Returns:
        whether the command may be cached or not.