Class ExternalCallActionCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
-
- org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
-
- org.palladiosimulator.generator.fluent.repository.structure.components.seff.ExternalCallActionCreator
-
public class ExternalCallActionCreator extends SeffAction
This class constructs anExternalCallAction
. It is used to create the 'ExternalCallAction' object step-by-step, i.e. 'ExternalCallActionCreator' objects are of intermediate state.- See Also:
ExternalCallAction
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
seff
-
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.RepositoryEntity
repository
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExternalCallActionCreator(SeffCreator seff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.seff.ExternalCallAction
build()
Turns the entity in the making into the finished entity.ExternalCallActionCreator
withCalledService(org.palladiosimulator.pcm.repository.OperationSignature signature)
Specifies thesignature
of the service that is called on by this action.ExternalCallActionCreator
withFailureType(org.palladiosimulator.pcm.reliability.FailureType failure)
Adds the failure typefailure
to this action's list of failure types.ExternalCallActionCreator
withInputVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of input variable usages.ExternalCallActionCreator
withName(String name)
Defines the unique name of this current entity.ExternalCallActionCreator
withRequiredRole(org.palladiosimulator.pcm.repository.OperationRequiredRole requiredRole)
Specifies therequiredRole
corresponding to the service that is called on by this action.ExternalCallActionCreator
withRetryCount(int retryCount)
Specifies theretryCount
of this external call action.ExternalCallActionCreator
withReturnVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of return variable usages.-
Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
followedBy
-
-
-
-
Constructor Detail
-
ExternalCallActionCreator
protected ExternalCallActionCreator(SeffCreator seff)
-
-
Method Detail
-
withName
public ExternalCallActionCreator 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.
-
withRetryCount
public ExternalCallActionCreator withRetryCount(int retryCount)
Specifies theretryCount
of this external call action.- Parameters:
retryCount
-- Returns:
- this external call action in the making
-
withCalledService
public ExternalCallActionCreator withCalledService(org.palladiosimulator.pcm.repository.OperationSignature signature)
Specifies thesignature
of the service that is called on by this action.An existing
signature
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationSignature(name)
.- Parameters:
signature
-- Returns:
- this external call action in the making
- See Also:
FluentRepositoryFactory.fetchOfOperationSignature(String)
-
withRequiredRole
public ExternalCallActionCreator withRequiredRole(org.palladiosimulator.pcm.repository.OperationRequiredRole requiredRole)
Specifies therequiredRole
corresponding to the service that is called on by this action.An existing
requiredRole
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, i.e.create.fetchOfOperationRequiredRole(name)
.- Parameters:
requiredRole
-- Returns:
- this external call action in the making
- See Also:
FluentRepositoryFactory.fetchOfOperationRequiredRole(String)
-
withInputVariableUsage
public ExternalCallActionCreator withInputVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of input variable usages.- Parameters:
variableUsage
-- Returns:
- this external call action in the making
- See Also:
FluentRepositoryFactory.newVariableUsage()
-
withReturnVariableUsage
public ExternalCallActionCreator withReturnVariableUsage(VariableUsageCreator variableUsage)
Adds thevariableUsage
to this action's list of return variable usages.- Parameters:
variableUsage
-- Returns:
- this external call action in the making
- See Also:
FluentRepositoryFactory.newVariableUsage()
-
withFailureType
public ExternalCallActionCreator withFailureType(org.palladiosimulator.pcm.reliability.FailureType failure)
Adds the failure typefailure
to this action's list of failure types.An existing
failure
can be fetched from the repository using the org.palladiosimulator.generator.fluent.component.factory, e.g.create.fetchOfFailureType(name)
.- Parameters:
failure
-- Returns:
- this external call action in the making
- See Also:
FluentRepositoryFactory.fetchOfFailureType(org.palladiosimulator.generator.fluent.component.repositoryStructure.datatypes.Failure)
,FluentRepositoryFactory.fetchOfFailureType(String)
-
build
protected org.palladiosimulator.pcm.seff.ExternalCallAction build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.- Specified by:
build
in classSeffAction
- Returns:
- the finished entity
-
-