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 allAbstractUserAction
s 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 boolean
cachable()
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
ICommandExecutor
instead to execute the operation.- Specified by:
execute
in interfaceICommand<List<A extends org.palladiosimulator.pcm.usagemodel.AbstractUserAction>,PCMModel>
- Parameters:
pcm
- the modelexecutor
- theICommandExecutor
that currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommand
interface.- Returns:
-
-