Class BranchTransitionCreator


  • public class BranchTransitionCreator
    extends UsageModelEntity
    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
    • 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.
        Specified by:
        build in class Entity
        Returns:
        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