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
-
public class BranchTransitionCreator extends UsageModelEntity
This class constructs aBranchTransition
. 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
Constructors Constructor Description BranchTransitionCreator(ScenarioBehaviourCreator branchedBehaviour)
Instantiates a new branch transition creator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.usagemodel.BranchTransition
build()
Turns the entity in the making into the finished entity.BranchTransitionCreator
withProbability(double probability)
Adds an probability to the branch transition.
-
-
-
Constructor Detail
-
BranchTransitionCreator
public BranchTransitionCreator(ScenarioBehaviourCreator branchedBehaviour)
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 Detail
-
build
protected org.palladiosimulator.pcm.usagemodel.BranchTransition build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.
-
withProbability
public BranchTransitionCreator withProbability(double probability)
Adds an probability to the branch transition.- Parameters:
probability
- of the branch- Returns:
- the current branch transition in the making
-
-