Class PCMRandomVariableSpecificationAccuracyMinimumTrafo
java.lang.Object
org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch<Boolean>
org.palladiosimulator.analyzer.accuracy.transformation.PCMRandomVariableSpecificationAccuracyMinimumTrafo
public class PCMRandomVariableSpecificationAccuracyMinimumTrafo
extends QualityAnnotationSwitch<Boolean>
Modifies a given PCM Random Variable according to the minimum 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
-
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'.void
setLowerLimit
(String lowerLimit) Sets the lower bound for the minimum.void
setModifiedVariable
(org.palladiosimulator.pcm.core.PCMRandomVariable modifiedVariable) Set the variable to modify upon invocation ofQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
.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
-
PCMRandomVariableSpecificationAccuracyMinimumTrafo
public PCMRandomVariableSpecificationAccuracyMinimumTrafo()
-
-
Method Details
-
setLowerLimit
Sets the lower bound for the minimum. The transformation will not result in values below 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:QualityAnnotationSwitch
Returns 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:
caseNoPrecision
in 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:QualityAnnotationSwitch
Returns 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:
caseExactlyAsSpecifiedPrecision
in 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:QualityAnnotationSwitch
Returns 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:
caseLimitedDeviationPrecision
in 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:QualityAnnotationSwitch
Returns 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:
casePrecision
in classQualityAnnotationSwitch<Boolean>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Precision'.
- See Also:
-