Class FindActionsInSeff<A extends org.palladiosimulator.pcm.seff.AbstractAction>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.command.action.FindActionsInSeff<A>
-
- All Implemented Interfaces:
ICommand<List<A>,PCMModel>
,IPCMCommand<List<A>>
public class FindActionsInSeff<A extends org.palladiosimulator.pcm.seff.AbstractAction> extends Object implements IPCMCommand<List<A>>
This command returns allAbstractAction
s of a specified type that are contained in the specified SEFF. The search is recursive such that action contained in loops or branches, for instance, are returned as well.
-
-
Constructor Summary
Constructors Constructor Description FindActionsInSeff(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF seff, Class<A> actionType)
Constructs a command that returns all actions of the specified type contained in the given SEFF.
-
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
-
FindActionsInSeff
public FindActionsInSeff(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF seff, Class<A> actionType)
Constructs a command that returns all actions of the specified type contained in the given SEFF.- Parameters:
seff
- the SEFF to be searched for actionsactionType
- the type of actions to be searched for
-
-
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.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:
-
-