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.AbstractUserAction
successor
-
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.AbstractUserAction
build()
Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.usagemodel.AbstractUserAction
getSuccessor()
Returns thesuccessor
of the current action.ActionCreator
withName(String name)
Defines the unique name of this current entity.ActionCreator
withSuccessor(ActionCreator action)
Adds anAbstract User Action
as successor.
-
-
-
Method Detail
-
build
public abstract org.palladiosimulator.pcm.usagemodel.AbstractUserAction build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.
-
withSuccessor
public ActionCreator withSuccessor(ActionCreator action)
Adds anAbstract 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 thesuccessor
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.
-
-