Class FindActionInBehaviour<R extends org.palladiosimulator.pcm.seff.AbstractAction>

  • Type Parameters:
    R - the type of the action that is to be searched for
    All Implemented Interfaces:
    ICommand<R,​PCMModel>, IPCMCommand<R>

    public class FindActionInBehaviour<R extends org.palladiosimulator.pcm.seff.AbstractAction>
    extends Object
    implements IPCMCommand<R>
    This command searches for an action of the specified type in the specified service effect specification and returns the first occurrence.
    • Constructor Detail

      • FindActionInBehaviour

        public FindActionInBehaviour​(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour behaviour,
                                     Class<R> actionClass)
    • Method Detail

      • execute

        public R execute​(PCMModel pcm,
                         ICommandExecutor<PCMModel> executor)
        Description copied from interface: ICommand
        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<R 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<R extends org.palladiosimulator.pcm.seff.AbstractAction,​PCMModel>
        Returns:
        whether the command may be cached or not.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object