Class GeneralAction
- 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
-
- Direct Known Subclasses:
AcquireActionCreator
,BranchActionCreator
,CollectionIteratorActionCreator
,ForkActionCreator
,InternalActionCreator
,InternalCallActionCreator
,LoopActionCreator
,RecoveryActionCreator
,ReleaseActionCreator
,SetVariableActionCreator
,StartActionCreator
,StopActionCreator
public abstract class GeneralAction extends SeffAction
This class provides the implementation of the methods that add resource demands, resource calls and infrastructure calls to a SEFF action. Most of the actions in a SEFF offer these characteristics.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand>
demands
protected List<org.palladiosimulator.pcm.seff.seff_performance.InfrastructureCall>
infrastructureCalls
protected List<org.palladiosimulator.pcm.seff.seff_performance.ResourceCall>
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
Constructors Constructor Description GeneralAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneralAction
withInfrastructureCall(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Adds anInfrastructureCall
to this action.GeneralAction
withResourceCall(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Adds aResourceCall
to this action.GeneralAction
withResourceDemand(String specificationStochasticExpression, ProcessingResource processingResource)
Adds aParametricResourceDemand
to this action.-
Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
build, followedBy
-
-
-
-
Field Detail
-
demands
protected List<org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand> demands
-
infrastructureCalls
protected List<org.palladiosimulator.pcm.seff.seff_performance.InfrastructureCall> infrastructureCalls
-
resourceCalls
protected List<org.palladiosimulator.pcm.seff.seff_performance.ResourceCall> resourceCalls
-
-
Method Detail
-
withResourceDemand
public GeneralAction withResourceDemand(String specificationStochasticExpression, ProcessingResource processingResource)
Adds aParametricResourceDemand
to this action.Parametric Resource Demand specifies the amount of processing requested from a certain type of resource in a parameterized way. It assigns the demand specified as a Random-Variable (
specification_stochasticExpression
) to an abstract ProcessingResourceTypeprocessingResource
(e.g., CPU, hard disk) instead of a concrete ProcessingResourceSpecification (e.g., 5 GHz CPU, 20 MByte/s hard disk).- Parameters:
specificationStochasticExpression
-processingResource
-- Returns:
- this action in the making
-
withInfrastructureCall
public GeneralAction withInfrastructureCall(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Adds anInfrastructureCall
to this action.- Parameters:
numberOfCallsStochasticExpression
-signature
-requiredRole
-variableUsages
-- Returns:
- this action in the making
-
withResourceCall
public GeneralAction withResourceCall(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Adds aResourceCall
to this action.- Parameters:
numberOfCallsStochasticExpression
-signature
-requiredRole
-variableUsages
-- Returns:
- this action in the making
-
-