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
This class constructs a
ClosedWorkload
. 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
ConstructorDescriptionClosedWorkloadCreator
(UsageModelCreator usgModelCreator, String thinkTime) Instantiates a new closed workload creator. -
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.pcm.usagemodel.Workload
build()
Turns the entity in the making into the finished entity.withPopulation
(int population) Adds a population to the Closed Workload.
-
Constructor Details
-
ClosedWorkloadCreator
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 Details
-
withPopulation
Adds a population to the Closed Workload.- Parameters:
population
- the population- Returns:
- the current closed workload in the making
- See Also:
-
ClosedWorkload
-
build
public org.palladiosimulator.pcm.usagemodel.Workload build()Description copied from class:Entity
Turns the entity in the making into the finished entity.
-