Class ValidationPrecisionToMinimumLongValue
- java.lang.Object
-
- org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch<Long>
-
- org.palladiosimulator.analyzer.accuracy.transformation.ValidationPrecisionToMinimumLongValue
-
public class ValidationPrecisionToMinimumLongValue extends QualityAnnotationSwitch<Long>
Provides the minimum long value for a given absolute long value and validation precision.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.analyzer.quality.qualityannotation.util.QualityAnnotationSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description ValidationPrecisionToMinimumLongValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
caseExactlyAsSpecifiedPrecision(ExactlyAsSpecifiedPrecision object)
Returns the result of interpreting the object as an instance of ' Exactly As Specified Precision'.Long
caseLimitedDeviationPrecision(LimitedDeviationPrecision object)
Returns the result of interpreting the object as an instance of ' Limited Deviation Precision'.Long
caseNoPrecision(NoPrecision object)
Returns the result of interpreting the object as an instance of 'No Precision'.void
setAbsoluteValue(Long absoluteValue)
Sets the absolute value.-
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, casePrecision, caseProbabilisticElement, caseQualityAnnotation, caseQualityStatement, caseREPrecision, caseRequiredElement, caseRequiredElementDeviation, caseServiceSpecification, defaultCase, doSwitch, doSwitch, doSwitch
-
-
-
-
Method Detail
-
setAbsoluteValue
public void setAbsoluteValue(Long absoluteValue)
Sets the absolute value. Value must be set prior to callingQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
. Value is reset after an invocation ofQualityAnnotationSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
.- Parameters:
absoluteValue
- Absolute value.
-
caseNoPrecision
public Long 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<Long>
- 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 Long 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<Long>
- 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 Long 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<Long>
- 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)
-
-