Class FindSeffsForAssemblyContext

  • All Implemented Interfaces:
    ICommand<List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF>,​PCMModel>, IPCMCommand<List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF>>

    public class FindSeffsForAssemblyContext
    extends Object
    implements IPCMCommand<List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF>>
    This command returns all ResourceDemandingSEFFs provided by the component that is encapsulated in a specified AssemblyContext.
    • Constructor Detail

      • FindSeffsForAssemblyContext

        public FindSeffsForAssemblyContext​(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx)
        Constructs a new command to find all SEFFs in the specified AssemblyContext.
        Parameters:
        assemblyCtx - the AssemblyContext
    • Method Detail

      • execute

        public List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF> 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<List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF>,​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<List<org.palladiosimulator.pcm.seff.ResourceDemandingSEFF>,​PCMModel>
        Returns:
        whether the command may be cached or not.