Class UsageScenarioCreator


  • public class UsageScenarioCreator
    extends UsageModelEntity
    This class constructs a Usage Scenario. It is used to create the 'Usage Scenario' object step-by-step, i.e. 'UsageScenarioCreator' objects are of intermediate state.
    See Also:
    UsageScenario
    • Constructor Detail

      • UsageScenarioCreator

        public UsageScenarioCreator​(UsageModelCreator usgModelCreator,
                                    ScenarioBehaviourCreator scenBehave,
                                    WorkloadCreator work)
        Instantiates a new usage scenario creator.

        UsageScenarios are concurrently executed behaviours of users within one UsageModel. It describes which services are directly invoked by users in one specific use case and models the possible sequences of calling them. Each UsageScenario includes a workload and a scenario behaviour.

        Parameters:
        usgModelCreator - the usage model creator
        scenBehave - the scenario behaviour
        work - the workload creator
        See Also:
        UsageScenario, ScenarioBehaviour
    • Method Detail

      • build

        public org.palladiosimulator.pcm.usagemodel.UsageScenario 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
      • withName

        public UsageScenarioCreator withName​(String name)
        Description copied from class: Entity
        Defines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
        Overrides:
        withName in class Entity
        Returns:
        this current entity in the making