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 allAbstractActions 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 booleancachable()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
ICommandExecutorinstead to execute the operation.- Specified by:
executein interfaceICommand<List<A 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:
-
-