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 booleancachable()booleanequals(Object obj)Rexecute(PCMModel pcm, ICommandExecutor<PCMModel> executor)Executes the operation encapsulated by this class.inthashCode()
-
-
-
Method Detail
-
execute
public R execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)
Description copied from interface:ICommandExecutes the operation encapsulated by this class.Notice: This method is not intended to be called by clients. Use a
ICommandExecutorinstead to execute the operation.- Specified by:
executein interfaceICommand<R extends org.palladiosimulator.pcm.seff.AbstractAction,PCMModel>- Parameters:
pcm- the modelexecutor- theICommandExecutorthat currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommandinterface.- Returns:
-
cachable
public boolean cachable()
-
-