Class PCMRandomVariableSpecificationAccuracyMaximumTrafo
java.lang.Object
org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch<Boolean>
org.palladiosimulator.analyzer.accuracy.transformation.PCMRandomVariableSpecificationAccuracyMaximumTrafo
public class PCMRandomVariableSpecificationAccuracyMaximumTrafo
extends QualityAnnotationSwitch<Boolean>
Modifies a given PCM Random Variable according to the maximum allowed by a precision.
First set the random variable by
setModifiedVariable(PCMRandomVariable) then transform it by QualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject).-
Field Summary
Fields inherited from class org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch
modelPackage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of ' Exactly As Specified Precision'.Returns the result of interpreting the object as an instance of ' Limited Deviation Precision'.caseNoPrecision(NoPrecision object) Returns the result of interpreting the object as an instance of 'No Precision'.casePrecision(Precision object) Returns the result of interpreting the object as an instance of 'Precision'.voidsetModifiedVariable(org.palladiosimulator.pcm.core.PCMRandomVariable modifiedVariable) Set the variable to modify upon invocation ofQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject).voidsetUpperLimit(String upperLimit) Sets the upper bound for the maximum.Methods inherited from class org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch
caseCharacterisedPCMParameterPartition, caseCharacterisedPCMParameterPartitionInterval, caseCharacterisedPCMParameterPartitionRange, caseIdentifier, caseInternalStateInfluenceAnalysisAggregation, caseParameterPartition, caseParameterValueDeviation, casePCMParameterPartition, casePCMPE, casePCMPEAllDecisions, casePCMPEDecision, casePCMRE, casePCMRECategory, casePCMRECIBehavior, casePCMREInfrastructureInterface, casePCMREInfrastructureRole, casePCMREInfrastructureSignature, casePCMREInterface, casePCMREResource, casePCMREResourceInterface, casePCMREResourceRole, casePCMREResourceSignature, casePCMRERole, casePCMRESignature, casePCMServiceSpecification, caseProbabilisticElement, caseQualityAnnotation, caseQualityStatement, caseREPrecision, caseRequiredElement, caseRequiredElementDeviation, caseServiceSpecification, defaultCase, doSwitch, doSwitch, doSwitch
-
Constructor Details
-
PCMRandomVariableSpecificationAccuracyMaximumTrafo
public PCMRandomVariableSpecificationAccuracyMaximumTrafo()
-
-
Method Details
-
setUpperLimit
Sets the upper bound for the maximum. The transformation will not result in values above this bound. The bound is automatically reset after an invocation ofQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject).- Parameters:
lowerLimit- The lower bound.
-
setModifiedVariable
public void setModifiedVariable(org.palladiosimulator.pcm.core.PCMRandomVariable modifiedVariable) Set the variable to modify upon invocation ofQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject).- Parameters:
modifiedVariable- The variable.
-
caseNoPrecision
Description copied from class:QualityAnnotationSwitchReturns the result of interpreting the object as an instance of 'No Precision'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNoPrecisionin classQualityAnnotationSwitch<Boolean>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'No Precision'.
- See Also:
-
caseExactlyAsSpecifiedPrecision
Description copied from class:QualityAnnotationSwitchReturns the result of interpreting the object as an instance of ' Exactly As Specified Precision'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseExactlyAsSpecifiedPrecisionin classQualityAnnotationSwitch<Boolean>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of ' Exactly As Specified Precision'.
- See Also:
-
caseLimitedDeviationPrecision
Description copied from class:QualityAnnotationSwitchReturns the result of interpreting the object as an instance of ' Limited Deviation Precision'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseLimitedDeviationPrecisionin classQualityAnnotationSwitch<Boolean>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of ' Limited Deviation Precision'.
- See Also:
-
casePrecision
Description copied from class:QualityAnnotationSwitchReturns the result of interpreting the object as an instance of 'Precision'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePrecisionin classQualityAnnotationSwitch<Boolean>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Precision'.
- See Also:
-