Class FindActionsInSeff<A extends org.palladiosimulator.pcm.seff.AbstractAction>

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

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

      • FindActionsInSeff

        public FindActionsInSeff​(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF seff,
                                 Class<A> actionType)
        Constructs a command that returns all actions of the specified type contained in the given SEFF.
        Parameters:
        seff - the SEFF to be searched for actions
        actionType - the type of actions to be searched for
    • 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.seff.AbstractAction>,​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.seff.AbstractAction>,​PCMModel>
        Returns:
        whether the command may be cached or not.