Package edu.kit.ipd.sdq.eventsim.command
Class CountingPCMModelCommandExecutor
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.command.PCMModelCommandExecutor
-
- edu.kit.ipd.sdq.eventsim.command.CountingPCMModelCommandExecutor
-
- All Implemented Interfaces:
ICommandExecutor<PCMModel>
public class CountingPCMModelCommandExecutor extends PCMModelCommandExecutor
-
-
Constructor Summary
Constructors Constructor Description CountingPCMModelCommandExecutor(PCMModel pcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
execute(ICommand<T,PCMModel> command)
Executes the specified command.void
printStatistics()
-
-
-
Constructor Detail
-
CountingPCMModelCommandExecutor
public CountingPCMModelCommandExecutor(PCMModel pcm)
-
-
Method Detail
-
execute
public <T> T execute(ICommand<T,PCMModel> command)
Description copied from class:PCMModelCommandExecutor
Executes the specified command.- Specified by:
execute
in interfaceICommandExecutor<PCMModel>
- Overrides:
execute
in classPCMModelCommandExecutor
- 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
.
-
printStatistics
public void printStatistics()
-
-