Class StopActionCreator

  • All Implemented Interfaces:
    StopSeff

    public class StopActionCreator
    extends GeneralAction
    implements StopSeff
    This class constructs a StopAction. It is used to create the 'StopAction' object step-by-step, i.e. 'StopActionCreator' objects are of intermediate state.
    See Also:
    StopAction
    • Constructor Detail

      • StopActionCreator

        protected StopActionCreator​(SeffCreator seff)
    • Method Detail

      • withName

        public StopActionCreator 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.
        Specified by:
        withName in interface StopSeff
        Overrides:
        withName in class Entity
        Returns:
        this current entity in the making
      • createBehaviourNow

        public SeffCreator createBehaviourNow()
        Description copied from interface: StopSeff
        The body behaviour always ends with a stop action and a finishing call on this method. It turns the stop-action-in-the-making into a 'StopAction' and adds it to the SEFF'S/behaviour's stepwise body behaviour
        Specified by:
        createBehaviourNow in interface StopSeff
        Returns:
        the SEFF/behaviour
      • withResourceDemand

        public StopActionCreator 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).

        Specified by:
        withResourceDemand in interface StopSeff
        Overrides:
        withResourceDemand in class GeneralAction
        Returns:
        this action in the making
      • build

        protected org.palladiosimulator.pcm.seff.StopAction 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