Package edu.kit.ipd.sdq.eventsim.command
Class PCMModelCommandExecutor
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.command.PCMModelCommandExecutor
-
- All Implemented Interfaces:
ICommandExecutor<PCMModel>
- Direct Known Subclasses:
CountingPCMModelCommandExecutor
public class PCMModelCommandExecutor extends Object implements ICommandExecutor<PCMModel>
ExecutesICommand
s operating on PCM models.- See Also:
ICommandExecutor
-
-
Constructor Summary
Constructors Constructor Description PCMModelCommandExecutor(PCMModel pcm)
Constructs an executor that is capable of executingICommand
s operating on PCM models.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
execute(ICommand<T,PCMModel> command)
Executes the specified command.
-
-
-
Method Detail
-
execute
public <T> T execute(ICommand<T,PCMModel> command)
Executes the specified command.- Specified by:
execute
in interfaceICommandExecutor<PCMModel>
- Parameters:
command
- the command that is to be executed- Returns:
- the result of executing the specified command, or null if the return type (T) is
Void
.
-
-