Class BranchActionCreator
BranchAction
. It is
used to create the 'BranchAction' object step-by-step, i.e.
'BranchActionCreator' objects are of intermediate state.- See Also:
-
BranchAction
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.GeneralAction
demands, infrastructureCalls, resourceCalls
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
seff
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.pcm.seff.BranchAction
build()
Turns the entity in the making into the finished entity.withGuardedBranchTransition
(String branchConditionStochasticExpression, Seff branchActions, String name) Adds a guarded branch transition to this action's list of branches.withGuardedBranchTransition
(String branchConditionStochasticExpression, SeffCreator branchActions) Adds a guarded branch transition to this action's list of branches.withInfrastructureCall
(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages) Adds anInfrastructureCall
to this action.Defines the unique name of this current entity.withProbabilisticBranchTransition
(double branchProbability, SeffCreator branchActions, String name) Adds a probabilistic branch transition to this action's list of branches.withProbabilisticBranchTransition
(Double branchProbability, SeffCreator branchActions) Adds a probabilistic branch transition to this action's list of branches.withResourceCall
(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages) Adds aResourceCall
to this action.withResourceDemand
(String specificationStochasticExpression, ProcessingResource processingResource) Adds aParametricResourceDemand
to this action.Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
followedBy
-
Constructor Details
-
BranchActionCreator
-
-
Method Details
-
withName
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. -
withGuardedBranchTransition
public BranchActionCreator withGuardedBranchTransition(String branchConditionStochasticExpression, Seff branchActions, String name) Adds a guarded branch transition to this action's list of branches.A
Guarded Branch Transition
provides a link between a BranchAction and a nested ResourceDemandingBehaviour, which includes the actions executed inside the branch. It uses a guard, i.e. a boolean expression specified by a RandomVariable, to determine whether the transition is chosen. If the guard evaluates to true, the branch is chosen, otherwise if the guard evaluates to false another branch transition must be chosen.- Parameters:
branchConditionStochasticExpression
- boolean expression, condition of the branchbranchActions
- nested resource demanding behaviourname
- of the branch- Returns:
- this branch action in the making
-
withGuardedBranchTransition
public BranchActionCreator withGuardedBranchTransition(String branchConditionStochasticExpression, SeffCreator branchActions) Adds a guarded branch transition to this action's list of branches.A
Guarded Branch Transition
provides a link between a BranchAction and a nested ResourceDemandingBehaviour, which includes the actions executed inside the branch. It uses a guard, i.e. a boolean expression specified by a RandomVariable, to determine whether the transition is chosen. If the guard evaluates to true, the branch is chosen, otherwise if the guard evaluates to false another branch transition must be chosen.- Parameters:
branchConditionStochasticExpression
- boolean expression, condition of the branchbranchActions
- nested resource demanding behaviour- Returns:
- this branch action in the making
-
withProbabilisticBranchTransition
public BranchActionCreator withProbabilisticBranchTransition(double branchProbability, SeffCreator branchActions, String name) Adds a probabilistic branch transition to this action's list of branches.A
Probabilistic Branch Transition
provides a link between a BranchAction and a nested ResourceDemandingBehaviour, which includes the actions executed inside the branch. But instead of using a guard, it specifies a branching probability without parameter dependencies.- Parameters:
branchProbability
-branchActions
- nested resource demanding behaviourname
-- Returns:
- this branch action in the making
-
withProbabilisticBranchTransition
public BranchActionCreator withProbabilisticBranchTransition(Double branchProbability, SeffCreator branchActions) Adds a probabilistic branch transition to this action's list of branches.A
Probabilistic Branch Transition
provides a link between a BranchAction and a nested ResourceDemandingBehaviour, which includes the actions executed inside the branch. But instead of using a guard, it specifies a branching probability without parameter dependencies.- Parameters:
branchProbability
-branchActions
- nested resource demanding behaviour- Returns:
- this branch action in the making
-
build
protected org.palladiosimulator.pcm.seff.BranchAction build()Description copied from class:Entity
Turns the entity in the making into the finished entity.- Specified by:
build
in classSeffAction
- Returns:
- the finished entity
-