Class BranchTransitionCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
org.palladiosimulator.generator.fluent.usagemodel.structure.components.actions.BranchTransitionCreator
This class constructs a
BranchTransition
. It is used to create the 'BranchTransition' object
step-by-step, i.e. 'BranchTransitionCreator' objects are of intermediate state.- See Also:
-
BranchTransition
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
Constructor Summary
ConstructorDescriptionBranchTransitionCreator
(ScenarioBehaviourCreator branchedBehaviour) Instantiates a new branch transition creator. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.pcm.usagemodel.BranchTransition
build()
Turns the entity in the making into the finished entity.withProbability
(double probability) Adds an probability to the branch transition.
-
Constructor Details
-
BranchTransitionCreator
Instantiates a new branch transition creator.The BranchTransition is an association class that realises the containment of ScenarioBehaviours in in the branches of a Branch action. It is a separate meta class because it has the additional attribute branchProbability that specifies how probably it is that the references ScenarioBehaviour is executed in the Branch action.
- Parameters:
branchedBehaviour
- the branched behaviour- See Also:
-
BranchTransition
ScenarioBehaviour
-
-
Method Details
-
build
protected org.palladiosimulator.pcm.usagemodel.BranchTransition build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
withProbability
Adds an probability to the branch transition.- Parameters:
probability
- of the branch- Returns:
- the current branch transition in the making
-