Class UsageModelCreator
- All Implemented Interfaces:
IUsageModel
,IUsageModelAddition
Usage Model
. It
is used to create the 'Usage Model' object step-by-step, i.e.
'UsageModelCreator' objects are of intermediate state.- See Also:
-
UsageModel
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddToUsageModel
(UsageScenarioCreator usageScenario) Adds aUsage Scenario
to the usage model.addToUsageModel
(UserDataCreator userData) Adds aUserData
to the usage model.protected org.palladiosimulator.pcm.usagemodel.UsageModel
build()
Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.usagemodel.UsageModel
Turns this usageModel-in-the-making into a Palladio-'UsageModel' object.
-
Constructor Details
-
Method Details
-
createUsageModelNow
public org.palladiosimulator.pcm.usagemodel.UsageModel createUsageModelNow()Description copied from interface:IUsageModelAddition
Turns this usageModel-in-the-making into a Palladio-'UsageModel' object.- Specified by:
createUsageModelNow
in interfaceIUsageModelAddition
- Returns:
- the final UsageModel object
- See Also:
-
UsageModel
-
build
protected org.palladiosimulator.pcm.usagemodel.UsageModel build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
addToUsageModel
Adds aUserData
to the usage model.UserData characterises data used in specific assembly contexts in the system. This data is the same for all UsageScenarios, i.e.,multiple users accessing the same components access the same data. This UserData refers to component parameters of the system publicized by the software architect (see pcm::parameters package). The domain expert characterises the values of component parameters related to business concepts (e.g., user specific data,data specific for a business domain), whereas the software architect characterises the values of component parameters related to technical concepts (e.g., size of caches, size of a thread pool, configuration data,etc.). One UserData instance includes all parameter characterisation for the annotated entity.
Create a new user data by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e.
create.newUserData(AssemblyContext context)
.- Specified by:
addToUsageModel
in interfaceIUsageModelAddition
- Parameters:
userData
- in the making- Returns:
- the usage model in the making
- See Also:
-
addToUsageModel
Adds aUsage Scenario
to the usage model.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.
Create a new usage scenario by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e.
create.newUsageScenario(ScenarioBehaviourCreator scenarioBehavior, WorkloadCreator workload)
.- Specified by:
addToUsageModel
in interfaceIUsageModelAddition
- Parameters:
usage
- scenario in the making- Returns:
- the usage model in the making
- See Also:
-