Class FindActionsInUsageScenario<A extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>

  • All Implemented Interfaces:
    ICommand<List<A>,​PCMModel>, IPCMCommand<List<A>>

    public class FindActionsInUsageScenario<A extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>
    extends Object
    implements IPCMCommand<List<A>>
    This command returns all AbstractUserActions of a specified type that are contained in the specified UsageScenario. The search is recursive such that action contained in loops or branches, for instance, are returned as well.
    • Constructor Detail

      • FindActionsInUsageScenario

        public FindActionsInUsageScenario​(org.palladiosimulator.pcm.usagemodel.UsageScenario scenario,
                                          Class<A> actionType,
                                          boolean recurse)
        Constructs a command that returns all EntryLevelSystemCalls contained in the given usage scenario.
        Parameters:
        scenario - the usage scenario
    • Method Detail

      • execute

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