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 bysetModifiedVariable(PCMRandomVariable)then transform it byQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject).
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description PCMRandomVariableSpecificationAccuracyMinimumTrafo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancaseExactlyAsSpecifiedPrecision(ExactlyAsSpecifiedPrecision object)Returns the result of interpreting the object as an instance of ' Exactly As Specified Precision'.BooleancaseLimitedDeviationPrecision(LimitedDeviationPrecision object)Returns the result of interpreting the object as an instance of ' Limited Deviation Precision'.BooleancaseNoPrecision(NoPrecision object)Returns the result of interpreting the object as an instance of 'No Precision'.BooleancasePrecision(Precision object)Returns the result of interpreting the object as an instance of 'Precision'.voidsetLowerLimit(String lowerLimit)Sets the lower bound for the minimum.voidsetModifiedVariable(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
-
-
-
-
Method Detail
-
setLowerLimit
public void setLowerLimit(String lowerLimit)
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
public Boolean caseNoPrecision(NoPrecision object)
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:
doSwitch(EObject)
-
caseExactlyAsSpecifiedPrecision
public Boolean caseExactlyAsSpecifiedPrecision(ExactlyAsSpecifiedPrecision object)
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:
doSwitch(EObject)
-
caseLimitedDeviationPrecision
public Boolean caseLimitedDeviationPrecision(LimitedDeviationPrecision object)
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:
doSwitch(EObject)
-
casePrecision
public Boolean casePrecision(Precision object)
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:
doSwitch(EObject)
-
-