Class OpenWorkloadGenerator
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.workload.generator.OpenWorkloadGenerator
-
- All Implemented Interfaces:
WorkloadGenerator
public class OpenWorkloadGenerator extends Object implements WorkloadGenerator
An open workload generates a newUser
as soon as a specified time duration has passed since the previous user has been created. This time duration between two subsequent user arrivals is called the interarrival time.
-
-
Constructor Summary
Constructors Constructor Description OpenWorkloadGenerator(UserFactory userFactory, org.palladiosimulator.pcm.usagemodel.OpenWorkload workload)
Constructs an open workload in accordance with the specified workload description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processWorkload()
Starts the workload generation.
-
-
-
Constructor Detail
-
OpenWorkloadGenerator
@Inject public OpenWorkloadGenerator(UserFactory userFactory, org.palladiosimulator.pcm.usagemodel.OpenWorkload workload)
Constructs an open workload in accordance with the specified workload description.- Parameters:
middleware
-userFactory
-workload
- the workload description
-
-
Method Detail
-
processWorkload
public void processWorkload()
Starts the workload generation.- Specified by:
processWorkload
in interfaceWorkloadGenerator
-
-