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
This class provides the general infrastructure of an action of the scenario behviour in usage
model. All actions inherit from this class.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.palladiosimulator.pcm.usagemodel.AbstractUserAction
Fields inherited from class org.palladiosimulator.generator.fluent.usagemodel.structure.UsageModelEntity
usageModelCreator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.palladiosimulator.pcm.usagemodel.AbstractUserAction
build()
Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.usagemodel.AbstractUserAction
Returns thesuccessor
of the current action.Defines the unique name of this current entity.withSuccessor
(ActionCreator action) Adds anAbstract User Action
as successor.
-
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. -
withSuccessor
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 IllegalStateExceptionReturns 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
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.
-