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
public class ProbfunctionSwitch<T1> extends Switch<T1>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
ProbfunctionPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static String
copyright
protected static ProbfunctionPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ProbfunctionSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T1
caseBoolSample(BoolSample object)
Returns the result of interpreting the object as an instance of 'Bool Sample'.T1
caseBoxedPDF(BoxedPDF object)
Returns the result of interpreting the object as an instance of 'Boxed PDF'.T1
caseComplex(Complex object)
Returns the result of interpreting the object as an instance of 'Complex'.T1
caseContinuousPDF(ContinuousPDF object)
Returns the result of interpreting the object as an instance of 'Continuous PDF'.T1
caseContinuousSample(ContinuousSample object)
Returns the result of interpreting the object as an instance of 'Continuous Sample'.T1
caseDoubleSample(DoubleSample object)
Returns the result of interpreting the object as an instance of 'Double Sample'.T1
caseExponentialDistribution(ExponentialDistribution object)
Returns the result of interpreting the object as an instance of 'Exponential Distribution'.T1
caseGammaDistribution(GammaDistribution object)
Returns the result of interpreting the object as an instance of 'Gamma Distribution'.T1
caseIntSample(IntSample object)
Returns the result of interpreting the object as an instance of 'Int Sample'.T1
caseLognormalDistribution(LognormalDistribution object)
Returns the result of interpreting the object as an instance of 'Lognormal Distribution'.T1
caseNormalDistribution(NormalDistribution object)
Returns the result of interpreting the object as an instance of 'Normal Distribution'.T1
caseProbabilityDensityFunction(ProbabilityDensityFunction object)
Returns the result of interpreting the object as an instance of 'Probability Density Function'.T1
caseProbabilityFunction(ProbabilityFunction object)
Returns the result of interpreting the object as an instance of 'Probability Function'.<T> T1
caseProbabilityMassFunction(ProbabilityMassFunction<T> object)
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'.T1
caseSamplePDF(SamplePDF object)
Returns the result of interpreting the object as an instance of 'Sample PDF'.T1
caseStringSample(StringSample object)
Returns the result of interpreting the object as an instance of 'String Sample'.T1
caseUnitCarryingElement(UnitCarryingElement object)
Returns the result of interpreting the object as an instance of 'Unit Carrying Element'.T1
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.protected T1
doSwitch(int classifierID, EObject theEObject)
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 Detail
-
copyright
public static final String copyright
- See Also:
- Constant Field Values
- Generated class or method.
-
modelPackage
protected static ProbfunctionPackage modelPackage
The cached model package- Generated class or method.
-
-
Method Detail
-
isSwitchFor
protected boolean isSwitchFor(EPackage ePackage)
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
protected T1 doSwitch(int classifierID, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
caseBoxedPDF
public T1 caseBoxedPDF(BoxedPDF object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseProbabilityDensityFunction
public T1 caseProbabilityDensityFunction(ProbabilityDensityFunction object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseProbabilityFunction
public T1 caseProbabilityFunction(ProbabilityFunction object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseContinuousSample
public T1 caseContinuousSample(ContinuousSample object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseProbabilityMassFunction
public <T> T1 caseProbabilityMassFunction(ProbabilityMassFunction<T> object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseSample
public <T> T1 caseSample(Sample<T> object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseSamplePDF
public T1 caseSamplePDF(SamplePDF object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseComplex
public T1 caseComplex(Complex object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseContinuousPDF
public T1 caseContinuousPDF(ContinuousPDF object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseExponentialDistribution
public T1 caseExponentialDistribution(ExponentialDistribution object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseNormalDistribution
public T1 caseNormalDistribution(NormalDistribution object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseLognormalDistribution
public T1 caseLognormalDistribution(LognormalDistribution object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseGammaDistribution
public T1 caseGammaDistribution(GammaDistribution object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseIntSample
public T1 caseIntSample(IntSample object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseBoolSample
public T1 caseBoolSample(BoolSample object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseDoubleSample
public T1 caseDoubleSample(DoubleSample object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseStringSample
public T1 caseStringSample(StringSample object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseUnitCarryingElement
public T1 caseUnitCarryingElement(UnitCarryingElement object)
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:
doSwitch(EObject)
- Generated class or method.
-
defaultCase
public T1 defaultCase(EObject object)
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:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
- Generated class or method.
-
-