Class AcquireActionCreator
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.GeneralAction
org.palladiosimulator.generator.fluent.repository.structure.components.seff.AcquireActionCreator
This class constructs an
AcquireAction
. It
is used to create the 'AcquireAction' object step-by-step, i.e.
'AcquireActionCreator' objects are of intermediate state.- See Also:
-
AcquireAction
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.GeneralAction
demands, infrastructureCalls, resourceCalls
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.pcm.seff.AcquireAction
build()
Turns the entity in the making into the finished entity.Specifies if this acquire action is timeout.withInfrastructureCall
(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages) Adds anInfrastructureCall
to this action.Defines the unique name of this current entity.withPassiveResource
(org.palladiosimulator.pcm.repository.PassiveResource passiveResource) Specifies the passive resource of this acquire action.withResourceCall
(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages) Adds aResourceCall
to this action.withResourceDemand
(String specificationStochasticExpression, ProcessingResource processingResource) Adds aParametricResourceDemand
to this action.withTimeoutValue
(double timeoutValue) Specifies the timeout value of this acquire action.Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
followedBy
-
Constructor Details
-
AcquireActionCreator
-
-
Method Details
-
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. -
withPassiveResource
public AcquireActionCreator withPassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource) Specifies the passive resource of this acquire action.An existing
passiveResource
can be fetched from the repository using the factory, i.e.create.fetchOfPassiveResource(name)
.- Parameters:
passiveResource
-- Returns:
- this acquire action in the making
- See Also:
-
factory.FluentRepositoryFactory#fetchOfPassiveResource(String)
-
withTimeoutValue
Specifies the timeout value of this acquire action.- Parameters:
timeoutValue
-- Returns:
- this acquire action in the making
-
isTimeout
Specifies if this acquire action is timeout.- Parameters:
isTimeout
-- Returns:
- this acquire action in the making
-
build
protected org.palladiosimulator.pcm.seff.AcquireAction 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
-