public class ClosedWorkloadCreator extends WorkloadCreator
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
  • Constructor Details

    • 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 creator
      thinkTime - the think time
      See Also:
      • ClosedWorkload
  • Method Details

    • 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
    • build

      public org.palladiosimulator.pcm.usagemodel.Workload build()
      Description copied from class: Entity
      Turns the entity in the making into the finished entity.
      Specified by:
      build in class Entity
      Returns:
      the finished entity