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 Boolean
caseExactlyAsSpecifiedPrecision(ExactlyAsSpecifiedPrecision object)
Returns the result of interpreting the object as an instance of ' Exactly As Specified Precision'.Boolean
caseLimitedDeviationPrecision(LimitedDeviationPrecision object)
Returns the result of interpreting the object as an instance of ' Limited Deviation Precision'.Boolean
caseNoPrecision(NoPrecision object)
Returns the result of interpreting the object as an instance of 'No Precision'.Boolean
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
-
-
-
-
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: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:
doSwitch(EObject)
-
caseExactlyAsSpecifiedPrecision
public Boolean caseExactlyAsSpecifiedPrecision(ExactlyAsSpecifiedPrecision object)
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:
doSwitch(EObject)
-
caseLimitedDeviationPrecision
public Boolean caseLimitedDeviationPrecision(LimitedDeviationPrecision object)
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:
doSwitch(EObject)
-
casePrecision
public Boolean casePrecision(Precision object)
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:
doSwitch(EObject)
-
-