Direct Known Subclasses:
BranchActionCreator, DelayActionCreator, EntryLevelSystemCallCreator, LoopActionCreator, StartActionCreator, StopActionCreator

public abstract class ActionCreator extends UsageModelEntity
This class provides the general infrastructure of an action of the scenario behviour in usage model. All actions inherit from this class.
  • Field Details

    • successor

      protected org.palladiosimulator.pcm.usagemodel.AbstractUserAction successor
  • Constructor Details

    • ActionCreator

      public ActionCreator()
  • Method Details

    • build

      public abstract org.palladiosimulator.pcm.usagemodel.AbstractUserAction build()
      Description copied from class: Entity
      Turns the entity in the making into the finished entity.
      Specified by:
      build in class Entity
      Returns:
      the finished entity
    • withSuccessor

      public ActionCreator withSuccessor(ActionCreator action)
      Adds an Abstract User Action as successor.

      Create a new action by using the org.palladiosimulator.generator.fluent.usagemodel.factory, i.e. create.newBranchAction().

      Parameters:
      action - in the making
      Returns:
      the current action in the making
      See Also:
      • AbstractUserAction
    • getSuccessor

      public org.palladiosimulator.pcm.usagemodel.AbstractUserAction getSuccessor() throws IllegalStateException
      Returns the successor of the current action.
      Returns:
      the successor of the current action in the making
      Throws:
      IllegalStateException - if withSuccessor() has not been called before
      See Also:
      • AbstractUserAction
    • withName

      public ActionCreator 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