Class 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 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:
    ProbfunctionPackage
    Generated class or method.
    • Constructor Detail

      • ProbfunctionSwitch

        public ProbfunctionSwitch()
        Creates an instance of the switch.
        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 class Switch<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)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Overrides:
        doSwitch in class Switch<T1>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated class or method.
      • 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 class Switch<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.