Class CollectionIteratorActionCreator


  • public class CollectionIteratorActionCreator
    extends GeneralAction
    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
    • Constructor Detail

      • CollectionIteratorActionCreator

        protected CollectionIteratorActionCreator​(SeffCreator seff)
    • Method Detail

      • withName

        public CollectionIteratorActionCreator 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 Entity
        Returns:
        this current entity in the making
      • 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

        public CollectionIteratorActionCreator withLoopBody​(Seff loopBody)
        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
      • withResourceDemand

        public CollectionIteratorActionCreator withResourceDemand​(String specificationStochasticExpression,
                                                                  ProcessingResource processingResource)
        Description copied from class: GeneralAction
        Adds a ParametricResourceDemand to this action.

        Parametric Resource Demand specifies the amount of processing requested from a certain type of resource in a parameterized way. It assigns the demand specified as a Random-Variable (specification_stochasticExpression) to an abstract ProcessingResourceType processingResource(e.g., CPU, hard disk) instead of a concrete ProcessingResourceSpecification (e.g., 5 GHz CPU, 20 MByte/s hard disk).

        Overrides:
        withResourceDemand in class GeneralAction
        Returns:
        this 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 class SeffAction
        Returns:
        the finished entity