Class ProbFunctionPrettyPrint
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T1>
-
- de.uka.ipd.sdq.probfunction.util.ProbfunctionSwitch<String>
-
- de.uka.ipd.sdq.probfunction.print.ProbFunctionPrettyPrint
-
public class ProbFunctionPrettyPrint extends ProbfunctionSwitch<String>
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.probfunction.util.ProbfunctionSwitch
copyright, modelPackage
-
-
Constructor Summary
Constructors Constructor Description ProbFunctionPrettyPrint()
ProbFunctionPrettyPrint(StringBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
caseBoxedPDF(BoxedPDF object)
Returns the result of interpreting the object as an instance of 'Boxed PDF'.String
caseExponentialDistribution(ExponentialDistribution object)
Returns the result of interpreting the object as an instance of 'Exponential Distribution'.String
caseGammaDistribution(GammaDistribution object)
Returns the result of interpreting the object as an instance of 'Gamma Distribution'.String
caseLognormalDistribution(LognormalDistribution object)
Returns the result of interpreting the object as an instance of 'Lognormal Distribution'.String
caseNormalDistribution(NormalDistribution object)
Returns the result of interpreting the object as an instance of 'Normal Distribution'.<T> String
caseProbabilityMassFunction(ProbabilityMassFunction<T> object)
Returns the result of interpreting the object as an instance of 'Probability Mass Function'.-
Methods inherited from class de.uka.ipd.sdq.probfunction.util.ProbfunctionSwitch
caseBoolSample, caseComplex, caseContinuousPDF, caseContinuousSample, caseDoubleSample, caseIntSample, caseProbabilityDensityFunction, caseProbabilityFunction, caseSample, caseSamplePDF, caseStringSample, caseUnitCarryingElement, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Constructor Detail
-
ProbFunctionPrettyPrint
public ProbFunctionPrettyPrint()
-
ProbFunctionPrettyPrint
public ProbFunctionPrettyPrint(StringBuilder builder)
-
-
Method Detail
-
caseBoxedPDF
public String caseBoxedPDF(BoxedPDF object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Boxed PDF'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseBoxedPDF
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Boxed PDF'.
- See Also:
doSwitch(EObject)
-
caseProbabilityMassFunction
public <T> String caseProbabilityMassFunction(ProbabilityMassFunction<T> object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Probability Mass Function'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseProbabilityMassFunction
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Probability Mass Function'.
- See Also:
doSwitch(EObject)
-
caseExponentialDistribution
public String caseExponentialDistribution(ExponentialDistribution object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Exponential Distribution'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseExponentialDistribution
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exponential Distribution'.
- See Also:
doSwitch(EObject)
-
caseGammaDistribution
public String caseGammaDistribution(GammaDistribution object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Gamma Distribution'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseGammaDistribution
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Gamma Distribution'.
- See Also:
doSwitch(EObject)
-
caseLognormalDistribution
public String caseLognormalDistribution(LognormalDistribution object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Lognormal Distribution'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseLognormalDistribution
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Lognormal Distribution'.
- See Also:
doSwitch(EObject)
-
caseNormalDistribution
public String caseNormalDistribution(NormalDistribution object)
Description copied from class:ProbfunctionSwitch
Returns the result of interpreting the object as an instance of 'Normal Distribution'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNormalDistribution
in classProbfunctionSwitch<String>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Normal Distribution'.
- See Also:
doSwitch(EObject)
-
-