Class CollectionIteratorActionCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
org.palladiosimulator.generator.fluent.repository.structure.components.seff.GeneralAction
org.palladiosimulator.generator.fluent.repository.structure.components.seff.CollectionIteratorActionCreator
This class constructs a
CollectionIteratorAction
. It is used to create the 'CollectionIteratorAction'
object step-by-step, i.e. 'CollectionIteratorActionCreator' objects are of
intermediate state.- See Also:
-
CollectionIteratorAction
-
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.CollectionIteratorAction
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.withLoopBody
(Seff loopBody) Defines the inner resource demanding behaviour that is executed for each element of a collection.Defines the unique name of this current entity.withParameter
(org.palladiosimulator.pcm.repository.Parameter parameter) Defines the parameter that holds the collection which is iterated over, i.e.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
-
CollectionIteratorActionCreator
-
-
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. -
withParameter
public CollectionIteratorActionCreator withParameter(org.palladiosimulator.pcm.repository.Parameter parameter) Defines the parameter that holds the collection which is iterated over, i.e. the parameter is of type CollectionDataType.- Parameters:
parameter
-- Returns:
- this collection iterator action in the making
-
withLoopBody
Defines the inner resource demanding behaviour that is executed for each element of a collection.- Parameters:
loopBody
- a nested resource demanding behaviour (seff)- Returns:
- this collection iterator action in the making
-
build
protected org.palladiosimulator.pcm.seff.CollectionIteratorAction 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
-