public class RecoveryActionCreator extends GeneralAction
This class constructs a RecoveryAction. 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
  • Constructor Details

  • Method Details

    • withName

      public RecoveryActionCreator 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.
      Overrides:
      withName in class Entity
      Returns:
      this current entity in the making
    • 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:
    • withAlternativeBehaviour

      public RecoveryActionCreator withAlternativeBehaviour(RecoverySeff recoveryActionBehaviour)
      Adds the recoveryActionBehaviour to this action's list of alternate recovery behaviours.
      Parameters:
      recoveryActionBehaviour -
      Returns:
      this recovery action in the making
      See Also:
    • withResourceDemand

      public RecoveryActionCreator withResourceDemand(String specificationStochasticExpression, ProcessingResource processingResource)
      Description copied from class: GeneralAction
      Adds a ParametricResourceDemand 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 ProcessingResourceType processingResource(e.g., CPU, hard disk) instead of a concrete ProcessingResourceSpecification (e.g., 5 GHz CPU, 20 MByte/s hard disk).

      Overrides:
      withResourceDemand in class GeneralAction
      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: GeneralAction
      Adds an InfrastructureCall to this action.
      Overrides:
      withInfrastructureCall in class GeneralAction
      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: GeneralAction
      Adds a ResourceCall to this action.
      Overrides:
      withResourceCall in class GeneralAction
      Returns:
      this action in the making
    • build

      protected org.palladiosimulator.pcm.seff.seff_reliability.RecoveryAction build()
      Description copied from class: Entity
      Turns the entity in the making into the finished entity.
      Specified by:
      build in class SeffAction
      Returns:
      the finished entity