Package de.uka.ipd.sdq.probfunction.util
Class ProbfunctionSwitch<T1>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T1>
de.uka.ipd.sdq.probfunction.util.ProbfunctionSwitch<T1>
- Direct Known Subclasses:
ProbFunctionCSVPrint
,ProbFunctionPrettyPrint
The Switch for the model's inheritance hierarchy. It supports the
call
doSwitch(object)
to invoke the caseXXX
method for
each class of the model, starting with the actual class of the object and proceeding up the
inheritance hierarchy until a non-null result is returned, which is the result of the switch.
- See Also:
- Generated class or method.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static ProbfunctionPackage
The cached model package -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseBoolSample
(BoolSample object) Returns the result of interpreting the object as an instance of 'Bool Sample'.caseBoxedPDF
(BoxedPDF object) Returns the result of interpreting the object as an instance of 'Boxed PDF'.caseComplex
(Complex object) Returns the result of interpreting the object as an instance of 'Complex'.caseContinuousPDF
(ContinuousPDF object) Returns the result of interpreting the object as an instance of 'Continuous PDF'.caseContinuousSample
(ContinuousSample object) Returns the result of interpreting the object as an instance of 'Continuous Sample'.caseDoubleSample
(DoubleSample object) Returns the result of interpreting the object as an instance of 'Double Sample'.Returns the result of interpreting the object as an instance of 'Exponential Distribution'.Returns the result of interpreting the object as an instance of 'Gamma Distribution'.caseIntSample
(IntSample object) Returns the result of interpreting the object as an instance of 'Int Sample'.Returns the result of interpreting the object as an instance of 'Lognormal Distribution'.Returns the result of interpreting the object as an instance of 'Normal Distribution'.Returns the result of interpreting the object as an instance of 'Probability Density Function'.Returns the result of interpreting the object as an instance of 'Probability Function'.<T> T1
Returns the result of interpreting the object as an instance of 'Probability Mass Function'.<T> T1
caseSample
(Sample<T> object) Returns the result of interpreting the object as an instance of 'Sample'.caseSamplePDF
(SamplePDF object) Returns the result of interpreting the object as an instance of 'Sample PDF'.caseStringSample
(StringSample object) Returns the result of interpreting the object as an instance of 'String Sample'.Returns the result of interpreting the object as an instance of 'Unit Carrying Element'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T1
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
copyright
- See Also:
- Generated class or method.
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
ProbfunctionSwitch
public ProbfunctionSwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T1>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
- Generated class or method.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result. -
caseBoxedPDF
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Boxed PDF'.
- See Also:
- Generated class or method.
-
caseProbabilityDensityFunction
Returns the result of interpreting the object as an instance of 'Probability Density Function'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Probability Density Function'.
- See Also:
- Generated class or method.
-
caseProbabilityFunction
Returns the result of interpreting the object as an instance of 'Probability Function'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Probability Function'.
- See Also:
- Generated class or method.
-
caseContinuousSample
Returns the result of interpreting the object as an instance of 'Continuous Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Continuous Sample'.
- See Also:
- Generated class or method.
-
caseProbabilityMassFunction
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Probability Mass Function'.
- See Also:
- Generated class or method.
-
caseSample
Returns the result of interpreting the object as an instance of 'Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sample'.
- See Also:
- Generated class or method.
-
caseSamplePDF
Returns the result of interpreting the object as an instance of 'Sample PDF'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sample PDF'.
- See Also:
- Generated class or method.
-
caseComplex
Returns the result of interpreting the object as an instance of 'Complex'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Complex'.
- See Also:
- Generated class or method.
-
caseContinuousPDF
Returns the result of interpreting the object as an instance of 'Continuous PDF'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Continuous PDF'.
- See Also:
- Generated class or method.
-
caseExponentialDistribution
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exponential Distribution'.
- See Also:
- Generated class or method.
-
caseNormalDistribution
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Normal Distribution'.
- See Also:
- Generated class or method.
-
caseLognormalDistribution
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Lognormal Distribution'.
- See Also:
- Generated class or method.
-
caseGammaDistribution
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Gamma Distribution'.
- See Also:
- Generated class or method.
-
caseIntSample
Returns the result of interpreting the object as an instance of 'Int Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Int Sample'.
- See Also:
- Generated class or method.
-
caseBoolSample
Returns the result of interpreting the object as an instance of 'Bool Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bool Sample'.
- See Also:
- Generated class or method.
-
caseDoubleSample
Returns the result of interpreting the object as an instance of 'Double Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Double Sample'.
- See Also:
- Generated class or method.
-
caseStringSample
Returns the result of interpreting the object as an instance of 'String Sample'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Sample'.
- See Also:
- Generated class or method.
-
caseUnitCarryingElement
Returns the result of interpreting the object as an instance of 'Unit Carrying Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Unit Carrying Element'.
- See Also:
- Generated class or method.
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCase
in classSwitch<T1>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
- Generated class or method.
-