Class ClosedWorkloadGenerator
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.workload.generator.ClosedWorkloadGenerator
-
- All Implemented Interfaces:
WorkloadGenerator
public class ClosedWorkloadGenerator extends Object implements WorkloadGenerator
A closed workload is a workload sustaining a fixed amount ofUser
s, which are called the workload population. The workload starts with generating a whole user generation. Whenever a user finishes its usage scenario, a new user is generated after waiting a specified amount of time. This duration is called the think time of an user.
-
-
Constructor Summary
Constructors Constructor Description ClosedWorkloadGenerator(UserFactory userFactory, org.palladiosimulator.pcm.usagemodel.ClosedWorkload workload)
Constructs a closed 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
-
ClosedWorkloadGenerator
@Inject public ClosedWorkloadGenerator(UserFactory userFactory, org.palladiosimulator.pcm.usagemodel.ClosedWorkload workload)
Constructs a closed 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
-
-