Class RecoveryActionCreator
- 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.RecoveryActionCreator
-
public class RecoveryActionCreator extends GeneralAction
This class constructs aRecoveryAction. It is used to create the 'RecoveryAction' object step-by-step, i.e. 'RecoveryActionCreator' objects are of intermediate state.- See Also:
org.palladiosimulator.pcm.seff.RecoveryAction
-
-
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
Constructors Modifier Constructor Description protectedRecoveryActionCreator(SeffCreator seff, RepositoryCreator repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.palladiosimulator.pcm.seff.seff_reliability.RecoveryActionbuild()Turns the entity in the making into the finished entity.RecoveryActionCreatorwithAlternativeBehaviour(RecoverySeff recoveryActionBehaviour)Adds therecoveryActionBehaviourto this action's list of alternate recovery behaviours.RecoveryActionCreatorwithInfrastructureCall(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages)Adds anInfrastructureCallto this action.RecoveryActionCreatorwithName(String name)Defines the unique name of this current entity.RecoveryActionCreatorwithPrimaryBehaviour(RecoverySeff recoveryActionBehaviour)Specifies the primary recovery behaviour of this recovery action.RecoveryActionCreatorwithResourceCall(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages)Adds aResourceCallto this action.RecoveryActionCreatorwithResourceDemand(String specificationStochasticExpression, ProcessingResource processingResource)Adds aParametricResourceDemandto this action.-
Methods inherited from class org.palladiosimulator.generator.fluent.repository.structure.components.seff.SeffAction
followedBy
-
-
-
-
Constructor Detail
-
RecoveryActionCreator
protected RecoveryActionCreator(SeffCreator seff, RepositoryCreator repo)
-
-
Method Detail
-
withName
public RecoveryActionCreator 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.
-
withPrimaryBehaviour
public RecoveryActionCreator withPrimaryBehaviour(RecoverySeff recoveryActionBehaviour)
Specifies the primary recovery behaviour of this recovery action.- Parameters:
recoveryActionBehaviour-- Returns:
- this recovery action in the making
- See Also:
FluentRepositoryFactory.newRecoveryBehaviour()
-
withAlternativeBehaviour
public RecoveryActionCreator withAlternativeBehaviour(RecoverySeff recoveryActionBehaviour)
Adds therecoveryActionBehaviourto this action's list of alternate recovery behaviours.- Parameters:
recoveryActionBehaviour-- Returns:
- this recovery action in the making
- See Also:
FluentRepositoryFactory.newRecoveryBehaviour()
-
withResourceDemand
public RecoveryActionCreator withResourceDemand(String specificationStochasticExpression, ProcessingResource processingResource)
Description copied from class:GeneralActionAdds aParametricResourceDemandto 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).- Overrides:
withResourceDemandin classGeneralAction- Returns:
- this action in the making
-
withInfrastructureCall
public RecoveryActionCreator withInfrastructureCall(String numberOfCallsStochasticExpression, org.palladiosimulator.pcm.repository.InfrastructureSignature signature, org.palladiosimulator.pcm.repository.InfrastructureRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Description copied from class:GeneralActionAdds anInfrastructureCallto this action.- Overrides:
withInfrastructureCallin classGeneralAction- Returns:
- this action in the making
-
withResourceCall
public RecoveryActionCreator withResourceCall(String numberOfCallsStochasticExpression, ResourceSignature signature, org.palladiosimulator.pcm.core.entity.ResourceRequiredRole requiredRole, VariableUsageCreator... variableUsages)
Description copied from class:GeneralActionAdds aResourceCallto this action.- Overrides:
withResourceCallin classGeneralAction- Returns:
- this action in the making
-
build
protected org.palladiosimulator.pcm.seff.seff_reliability.RecoveryAction build()
Description copied from class:EntityTurns the entity in the making into the finished entity.- Specified by:
buildin classSeffAction- Returns:
- the finished entity
-
-