Class ClosedWorkloadCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.components.workload.WorkloadCreator
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.components.workload.ClosedWorkloadCreator
-
public class ClosedWorkloadCreator extends WorkloadCreator
This class constructs aClosedWorkload
. It is used to create the 'Closed Workload' object step-by-step, i.e. 'ClosedWorkloadCreator' objects are of intermediate state.- See Also:
ClosedWorkload
,Workload
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.components.workload.WorkloadCreator
time
-
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
-
Constructor Summary
Constructors Constructor Description ClosedWorkloadCreator(UsageModelCreator usgModelCreator, String thinkTime)
Instantiates a new closed workload creator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.usagemodel.Workload
build()
Turns the entity in the making into the finished entity.ClosedWorkloadCreator
withPopulation(int population)
Adds a population to the Closed Workload.
-
-
-
Constructor Detail
-
ClosedWorkloadCreator
public ClosedWorkloadCreator(UsageModelCreator usgModelCreator, String thinkTime)
Instantiates a new closed workload creator.ClosedWorkload specifies directly the (constant) user population and a think time. It modelst hat a fixed number of users execute their scenario, then wait (or think) for the specified amount of think time as a RandomVariable, and then reenter the system executing their scenario again.Performance analysts use closed workloads to model scenarios, where the number of users is known(e.g., a fixed number of users in a company).
- Parameters:
usgModelCreator
- the usage model creatorthinkTime
- the think time- See Also:
ClosedWorkload
-
-
Method Detail
-
withPopulation
public ClosedWorkloadCreator withPopulation(int population)
Adds a population to the Closed Workload.- Parameters:
population
- the population- Returns:
- the current closed workload in the making
- See Also:
ClosedWorkload
-
-