Class BuildWorkloadGenerator
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.workload.generator.BuildWorkloadGenerator
-
- All Implemented Interfaces:
ICommand<List<WorkloadGenerator>,PCMModel>
,IPCMCommand<List<WorkloadGenerator>>
public class BuildWorkloadGenerator extends Object implements IPCMCommand<List<WorkloadGenerator>>
This command creates and returns a list of allWorkloadGenerator
s for a PCM usage model.
-
-
Constructor Summary
Constructors Constructor Description BuildWorkloadGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cachable()
List<WorkloadGenerator>
execute(PCMModel pcm, ICommandExecutor<PCMModel> executor)
Executes the operation encapsulated by this class.
-
-
-
Method Detail
-
execute
public List<WorkloadGenerator> 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<WorkloadGenerator>,PCMModel>
- Parameters:
pcm
- the modelexecutor
- theICommandExecutor
that currently executes this operation. Use this reference to invoke sub-operations also implementing thisICommand
interface.- Returns:
-
cachable
public boolean cachable()
- Specified by:
cachable
in interfaceICommand<List<WorkloadGenerator>,PCMModel>
- Returns:
- whether the command may be cached or not.
-
-