Class FindActionInBehaviour<R extends org.palladiosimulator.pcm.seff.AbstractAction>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.command.action.FindActionInBehaviour<R>
-
- 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 Summary
Constructors Constructor Description FindActionInBehaviour(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour behaviour, Class<R> actionClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cachable()
boolean
equals(Object obj)
R
execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)
Executes the operation encapsulated by this class.int
hashCode()
-
-
-
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 interfaceICommand<R extends org.palladiosimulator.pcm.seff.AbstractAction,PCMModel>
- Parameters:
pcm
- the modelexecutor
- theICommandExecutor
that currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommand
interface.- Returns:
-
cachable
public boolean cachable()
-
-