Class AbstractAccuracyInfluenceSEFFTransformationStrategy
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
org.palladiosimulator.analyzer.accuracy.transformation.AbstractAccuracyInfluenceSEFFTransformationStrategy
- Direct Known Subclasses:
AccuracyInfluenceSEFFTransformationStrategyAsSpecified,AccuracyInfluenceSEFFTransformationStrategyMaximum,AccuracyInfluenceSEFFTransformationStrategyMinimum
public abstract class AbstractAccuracyInfluenceSEFFTransformationStrategy
extends org.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
Abstract strategy implementing the transformation of given SEFFs for states
in
AccuracyInfluenceAnalysisState. Start the transformation by
invoking Switch.doSwitch(org.eclipse.emf.ecore.EObject) with a parameter of
type ServiceEffectSpecification. Subclasses must provide an
implementation for the abstract methods. Overwriting methods defined in this
class is discouraged and may lead to unexpected behavior.-
Field Summary
Fields inherited from class org.palladiosimulator.pcm.seff.util.SeffSwitch
copyright, modelPackage -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncaseAbstractAction(org.palladiosimulator.pcm.seff.AbstractAction object) caseAbstractInternalControlFlowAction(org.palladiosimulator.pcm.seff.AbstractInternalControlFlowAction object) caseAbstractLoopAction(org.palladiosimulator.pcm.seff.AbstractLoopAction object) caseBranchAction(org.palladiosimulator.pcm.seff.BranchAction object) caseExternalCallAction(org.palladiosimulator.pcm.seff.ExternalCallAction object) caseForkAction(org.palladiosimulator.pcm.seff.ForkAction object) caseInternalCallAction(org.palladiosimulator.pcm.seff.InternalCallAction object) caseResourceDemandingBehaviour(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour object) caseResourceDemandingSEFF(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF object) caseServiceEffectSpecification(org.palladiosimulator.pcm.seff.ServiceEffectSpecification object) List<de.uka.ipd.sdq.errorhandling.core.SeverityAndIssue>getQualityAnnotation(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF rdseff, List<QualityAnnotation> qas) Gets the quality annotation for a given RDSEFF from a list of annotations.getQualityAnnotations(PCMResourceSetPartition pcmPartition) protected abstract voidmodifyComponentExternalCall(org.palladiosimulator.pcm.seff.ExternalCallAction call, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.protected abstract voidmodifyComponentInternalCall(org.palladiosimulator.pcm.seff.InternalCallAction call, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.protected abstract voidmodifyInfrastructureCall(org.palladiosimulator.pcm.seff.seff_performance.InfrastructureCall call, REPrecision precision) Implementation of modification strategy for infrastructure calls.protected abstract voidmodifyResourceCall(org.palladiosimulator.pcm.seff.seff_performance.ResourceCall call, REPrecision precision) Implementation of modification strategy for resource calls.protected abstract voidmodifyResourceDemand(org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand demand, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.Methods inherited from class org.palladiosimulator.pcm.seff.util.SeffSwitch
caseAbstractBranchTransition, caseAcquireAction, caseCallAction, caseCallReturnAction, caseCollectionIteratorAction, caseEmitEventAction, caseEntity, caseFailureHandlingEntity, caseForkedBehaviour, caseGuardedBranchTransition, caseIdentifier, caseInternalAction, caseLoopAction, caseNamedElement, casePCMBaseClass, casePCMClass, caseProbabilisticBranchTransition, caseReleaseAction, caseResourceDemandingInternalBehaviour, caseSetVariableAction, caseStartAction, caseStopAction, caseSynchronisationPoint, defaultCase, doSwitch, isSwitchFor
-
Constructor Details
-
AbstractAccuracyInfluenceSEFFTransformationStrategy
Create a new instance.- Parameters:
pcmPartition- Partition containing quality annotations.
-
-
Method Details
-
getIssues
- Returns:
- Gets the list of warning and errors.
-
caseResourceDemandingSEFF
public Boolean caseResourceDemandingSEFF(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF object) - Overrides:
caseResourceDemandingSEFFin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseResourceDemandingBehaviour
public Boolean caseResourceDemandingBehaviour(org.palladiosimulator.pcm.seff.ResourceDemandingBehaviour object) - Overrides:
caseResourceDemandingBehaviourin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseBranchAction
- Overrides:
caseBranchActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseAbstractLoopAction
- Overrides:
caseAbstractLoopActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseForkAction
- Overrides:
caseForkActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseServiceEffectSpecification
public Boolean caseServiceEffectSpecification(org.palladiosimulator.pcm.seff.ServiceEffectSpecification object) - Overrides:
caseServiceEffectSpecificationin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
getQualityAnnotations
- Returns:
- Returns all quality annotations in the PCM partition.
-
getQualityAnnotation
public QualityAnnotation getQualityAnnotation(org.palladiosimulator.pcm.seff.ResourceDemandingSEFF rdseff, List<QualityAnnotation> qas) Gets the quality annotation for a given RDSEFF from a list of annotations.- Parameters:
rdseff- The RDSEFF.qas- The list of annotations.- Returns:
- The quality annotation or
nullif none was found.
-
caseAbstractAction
- Overrides:
caseAbstractActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseAbstractInternalControlFlowAction
public Boolean caseAbstractInternalControlFlowAction(org.palladiosimulator.pcm.seff.AbstractInternalControlFlowAction object) - Overrides:
caseAbstractInternalControlFlowActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseExternalCallAction
- Overrides:
caseExternalCallActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
caseInternalCallAction
- Overrides:
caseInternalCallActionin classorg.palladiosimulator.pcm.seff.util.SeffSwitch<Boolean>
-
modifyInfrastructureCall
protected abstract void modifyInfrastructureCall(org.palladiosimulator.pcm.seff.seff_performance.InfrastructureCall call, REPrecision precision) Implementation of modification strategy for infrastructure calls.- Parameters:
call- Infrastructure call.precision- Stated accuracy.
-
modifyResourceCall
protected abstract void modifyResourceCall(org.palladiosimulator.pcm.seff.seff_performance.ResourceCall call, REPrecision precision) Implementation of modification strategy for resource calls.- Parameters:
call- Infrastructure call.precision- Stated accuracy.
-
modifyResourceDemand
protected abstract void modifyResourceDemand(org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand demand, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.- Parameters:
call- Infrastructure call.precision- Stated accuracy.
-
modifyComponentInternalCall
protected abstract void modifyComponentInternalCall(org.palladiosimulator.pcm.seff.InternalCallAction call, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.- Parameters:
call- Infrastructure call.precision- Stated accuracy.
-
modifyComponentExternalCall
protected abstract void modifyComponentExternalCall(org.palladiosimulator.pcm.seff.ExternalCallAction call, REPrecision precision) Implementation of modification strategy for (implicit) resource demands.- Parameters:
call- Infrastructure call.precision- Stated accuracy.
-