Class FindActionsInUsageScenario<A extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.command.useraction.FindActionsInUsageScenario<A>
-
- 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 allAbstractUserActions of a specified type that are contained in the specifiedUsageScenario. The search is recursive such that action contained in loops or branches, for instance, are returned as well.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancachable()List<A>execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)Executes the operation encapsulated by this class.
-
-
-
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
ICommandExecutorinstead to execute the operation.- Specified by:
executein interfaceICommand<List<A extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>,PCMModel>- Parameters:
pcm- the modelexecutor- theICommandExecutorthat currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommandinterface.- Returns:
-
-