Class BranchActionCreator
- 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.ActionCreator
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.components.actions.BranchActionCreator
-
public class BranchActionCreator extends ActionCreator
This class constructs aBranch. It is used to create the 'Branch' object step-by-step, i.e. 'BranchActionCreator' objects are of intermediate state.- See Also:
Branch,AbstractUserAction
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.components.actions.ActionCreator
successor
-
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
-
Constructor Summary
Constructors Constructor Description BranchActionCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchActionCreatoraddToBranchAction(BranchTransitionCreator branchTransition)Adds anBranch Transitionto the Branch.org.palladiosimulator.pcm.usagemodel.Branchbuild()Turns the entity in the making into the finished entity.BranchActionCreatorwithName(String name)Defines the unique name of this current entity.BranchActionCreatorwithSuccessor(ActionCreator action)Adds anAbstract User Actionas successor.-
Methods inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.components.actions.ActionCreator
getSuccessor
-
-
-
-
Method Detail
-
addToBranchAction
public BranchActionCreator addToBranchAction(BranchTransitionCreator branchTransition)
Adds anBranch Transitionto 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:EntityTurns the entity in the making into the finished entity.- Specified by:
buildin classActionCreator- Returns:
- the finished entity
-
withSuccessor
public BranchActionCreator withSuccessor(ActionCreator action)
Description copied from class:ActionCreatorAdds anAbstract User Actionas successor.Create a new action by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e.
create.newBranchAction().- Overrides:
withSuccessorin classActionCreator- 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:EntityDefines 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:
withNamein classActionCreator- Returns:
- this current entity in the making
-
-