Class ActionCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
-
- org.palladiosimulator.generator.fluent.usagemodel.structure.components.actions.ActionCreator
-
- 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 Summary
Fields Modifier and Type Field Description protected org.palladiosimulator.pcm.usagemodel.AbstractUserActionsuccessor-
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
-
Constructor Summary
Constructors Constructor Description ActionCreator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.palladiosimulator.pcm.usagemodel.AbstractUserActionbuild()Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.usagemodel.AbstractUserActiongetSuccessor()Returns thesuccessorof the current action.ActionCreatorwithName(String name)Defines the unique name of this current entity.ActionCreatorwithSuccessor(ActionCreator action)Adds anAbstract User Actionas successor.
-
-
-
Method Detail
-
build
public abstract org.palladiosimulator.pcm.usagemodel.AbstractUserAction build()
Description copied from class:EntityTurns the entity in the making into the finished entity.
-
withSuccessor
public ActionCreator withSuccessor(ActionCreator action)
Adds anAbstract User Actionas 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 IllegalStateExceptionReturns thesuccessorof 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:EntityDefines 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.
-
-