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 protectedExternalCallActionCreator(SeffCreator seff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.seff.ExternalCallActionbuild()Turns the entity in the making into the finished entity.ExternalCallActionCreatorwithCalledService(org.palladiosimulator.pcm.repository.OperationSignature signature)Specifies thesignatureof the service that is called on by this action.ExternalCallActionCreatorwithFailureType(org.palladiosimulator.pcm.reliability.FailureType failure)Adds the failure typefailureto this action's list of failure types.ExternalCallActionCreatorwithInputVariableUsage(VariableUsageCreator variableUsage)Adds thevariableUsageto this action's list of input variable usages.ExternalCallActionCreatorwithName(String name)Defines the unique name of this current entity.ExternalCallActionCreatorwithRequiredRole(org.palladiosimulator.pcm.repository.OperationRequiredRole requiredRole)Specifies therequiredRolecorresponding to the service that is called on by this action.ExternalCallActionCreatorwithRetryCount(int retryCount)Specifies theretryCountof this external call action.ExternalCallActionCreatorwithReturnVariableUsage(VariableUsageCreator variableUsage)Adds thevariableUsageto 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: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.
-
withRetryCount
public ExternalCallActionCreator withRetryCount(int retryCount)
Specifies theretryCountof 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 thesignatureof the service that is called on by this action.An existing
signaturecan 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 therequiredRolecorresponding to the service that is called on by this action.An existing
requiredRolecan 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 thevariableUsageto 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 thevariableUsageto 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 typefailureto this action's list of failure types.An existing
failurecan 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:EntityTurns the entity in the making into the finished entity.- Specified by:
buildin classSeffAction- Returns:
- the finished entity
-
-