public class BranchActionCreator extends ActionCreator
This class constructs a Branch. It is used to create the 'Branch' object step-by-step, i.e. 'BranchActionCreator' objects are of intermediate state.
See Also:
  • Branch
  • AbstractUserAction
  • Constructor Details

    • BranchActionCreator

      public BranchActionCreator()
  • Method Details

    • addToBranchAction

      public BranchActionCreator addToBranchAction(BranchTransitionCreator branchTransition)
      Adds an Branch Transition to the Branch.

      The probability of all added BranchTransitions need to sum up to 1.

      Create a new branch transition by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e. create.newBranchTransition(ScenarioBehaviourCreator branchedBehaviour).

      Parameters:
      branch - transition in the making
      Returns:
      the current branch action in the making
      See Also:
      • BranchTransition
    • build

      public org.palladiosimulator.pcm.usagemodel.Branch build()
      Description copied from class: Entity
      Turns the entity in the making into the finished entity.
      Specified by:
      build in class ActionCreator
      Returns:
      the finished entity
    • withSuccessor

      public BranchActionCreator withSuccessor(ActionCreator action)
      Description copied from class: ActionCreator
      Adds an Abstract User Action as successor.

      Create a new action by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e. create.newBranchAction().

      Overrides:
      withSuccessor in class ActionCreator
      Parameters:
      action - in the making
      Returns:
      the current action in the making
      See Also:
      • AbstractUserAction
    • withName

      public BranchActionCreator 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 ActionCreator
      Returns:
      this current entity in the making