Class LoopActionCreator
LoopAction
. It is used
to create the 'LoopAction' object step-by-step, i.e.
'LoopActionCreator' objects are of intermediate state.- See Also:
-
LoopAction
-
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.LoopAction
build()
Turns the entity in the making into the finished entity.withInfrastructureCall
(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages) Adds anInfrastructureCall
to this action.withIterationCount
(String iterationCountStochasticExpression) Specifies the number of repetitions the inner ResourceDemandingBehaviour is executed.withLoopBody
(Seff loopBody) Specifies the inner ResourceDemandingBehaviour representing the loop body.Defines the unique name of this current entity.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
-
LoopActionCreator
-
-
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. -
withIterationCount
Specifies the number of repetitions the inner ResourceDemandingBehaviour is executed.The number of repetitions is specified by a random variable evaluating to integer or an IntPMF. The number of iterations specified by the random variable always needs to be bounded, i.e., the probabilities in an IntPMF for iteration numbers above a certain threshold must be zero. Otherwise, it would be possible that certain requests do not terminate, which would complicate performance analyses. The stochastic expression defining the iteration random variable may include references to input or component parameters to model dependencies between the usage profile and the number of loop iterations.
- Parameters:
iterationCountStochasticExpression
-- Returns:
- this loop action in the making
- See Also:
-
LoopAction
-
withLoopBody
Specifies the inner ResourceDemandingBehaviour representing the loop body.Notice, that loop actions should only be modeled if the loop body contains either external service calls or resource demands directed at special resources. Otherwise, control flow loops in component behaviour should be abstracted by subsuming them in InternalAction, which combine a number of instructions.
- Parameters:
loopBody
-- Returns:
- this loop action in the making
-
build
protected org.palladiosimulator.pcm.seff.LoopAction 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
-