Package bpsim.util

Class BpsimSwitch<T>


  • public class BpsimSwitch<T>
    extends Object
    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:
    BpsimPackage
    Generated code
    • Field Detail

      • modelPackage

        protected static BpsimPackage modelPackage
        The cached model package
        Generated code
    • Constructor Detail

      • BpsimSwitch

        public BpsimSwitch()
        Creates an instance of the switch.
        Generated code
    • Method Detail

      • doSwitch

        public T doSwitch​(org.eclipse.emf.ecore.EObject theEObject)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated code
      • doSwitch

        protected T doSwitch​(org.eclipse.emf.ecore.EClass theEClass,
                             org.eclipse.emf.ecore.EObject theEObject)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated code
      • doSwitch

        protected T doSwitch​(int classifierID,
                             org.eclipse.emf.ecore.EObject theEObject)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated code
      • caseBetaDistributionType

        public T caseBetaDistributionType​(BetaDistributionType object)
        Returns the result of interpreting the object as an instance of 'Beta Distribution Type'. 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 'Beta Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseBinomialDistributionType

        public T caseBinomialDistributionType​(BinomialDistributionType object)
        Returns the result of interpreting the object as an instance of 'Binomial Distribution Type'. 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 'Binomial Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseBooleanParameterType

        public T caseBooleanParameterType​(BooleanParameterType object)
        Returns the result of interpreting the object as an instance of 'Boolean Parameter Type'. 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 'Boolean Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseBPSimDataType

        public T caseBPSimDataType​(BPSimDataType object)
        Returns the result of interpreting the object as an instance of 'BP Sim Data Type'. 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 'BP Sim Data Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseCalendar

        public T caseCalendar​(Calendar object)
        Returns the result of interpreting the object as an instance of 'Calendar'. 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 'Calendar'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseConstantParameter

        public T caseConstantParameter​(ConstantParameter object)
        Returns the result of interpreting the object as an instance of 'Constant Parameter'. 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 'Constant Parameter'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseControlParameters

        public T caseControlParameters​(ControlParameters object)
        Returns the result of interpreting the object as an instance of 'Control Parameters'. 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 'Control Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseCostParameters

        public T caseCostParameters​(CostParameters object)
        Returns the result of interpreting the object as an instance of 'Cost Parameters'. 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 'Cost Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseDateTimeParameterType

        public T caseDateTimeParameterType​(DateTimeParameterType object)
        Returns the result of interpreting the object as an instance of 'Date Time Parameter Type'. 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 'Date Time Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseDistributionParameter

        public T caseDistributionParameter​(DistributionParameter object)
        Returns the result of interpreting the object as an instance of 'Distribution Parameter'. 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 'Distribution Parameter'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseDocumentRoot

        public T caseDocumentRoot​(DocumentRoot object)
        Returns the result of interpreting the object as an instance of 'Document Root'. 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 'Document Root'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseDurationParameterType

        public T caseDurationParameterType​(DurationParameterType object)
        Returns the result of interpreting the object as an instance of 'Duration Parameter Type'. 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 'Duration Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseElementParameters

        public T caseElementParameters​(ElementParameters object)
        Returns the result of interpreting the object as an instance of 'Element Parameters'. 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 'Element Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseElementParametersType

        public T caseElementParametersType​(ElementParametersType object)
        Returns the result of interpreting the object as an instance of 'Element Parameters Type'. 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 'Element Parameters Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseEnumParameterType

        public T caseEnumParameterType​(EnumParameterType object)
        Returns the result of interpreting the object as an instance of 'Enum Parameter Type'. 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 'Enum Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseErlangDistributionType

        public T caseErlangDistributionType​(ErlangDistributionType object)
        Returns the result of interpreting the object as an instance of 'Erlang Distribution Type'. 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 'Erlang Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseExpressionParameterType

        public T caseExpressionParameterType​(ExpressionParameterType object)
        Returns the result of interpreting the object as an instance of 'Expression Parameter Type'. 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 'Expression Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseFloatingParameterType

        public T caseFloatingParameterType​(FloatingParameterType object)
        Returns the result of interpreting the object as an instance of 'Floating Parameter Type'. 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 'Floating Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseGammaDistributionType

        public T caseGammaDistributionType​(GammaDistributionType object)
        Returns the result of interpreting the object as an instance of 'Gamma Distribution Type'. 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 Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseLogNormalDistributionType

        public T caseLogNormalDistributionType​(LogNormalDistributionType object)
        Returns the result of interpreting the object as an instance of 'Log Normal Distribution Type'. 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 'Log Normal Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseNegativeExponentialDistributionType

        public T caseNegativeExponentialDistributionType​(NegativeExponentialDistributionType object)
        Returns the result of interpreting the object as an instance of 'Negative Exponential Distribution Type'. 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 'Negative Exponential Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseNormalDistributionType

        public T caseNormalDistributionType​(NormalDistributionType object)
        Returns the result of interpreting the object as an instance of 'Normal Distribution Type'. 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 Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseNumericParameterType

        public T caseNumericParameterType​(NumericParameterType object)
        Returns the result of interpreting the object as an instance of 'Numeric Parameter Type'. 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 'Numeric Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseParameter

        public T caseParameter​(Parameter object)
        Returns the result of interpreting the object as an instance of 'Parameter'. 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 'Parameter'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseParameterValue

        public T caseParameterValue​(ParameterValue object)
        Returns the result of interpreting the object as an instance of 'Parameter Value'. 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 'Parameter Value'.
        See Also:
        doSwitch(EObject)
        Generated code
      • casePoissonDistributionType

        public T casePoissonDistributionType​(PoissonDistributionType object)
        Returns the result of interpreting the object as an instance of 'Poisson Distribution Type'. 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 'Poisson Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • casePriorityParameters

        public T casePriorityParameters​(PriorityParameters object)
        Returns the result of interpreting the object as an instance of 'Priority Parameters'. 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 'Priority Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • casePropertyParameters

        public T casePropertyParameters​(PropertyParameters object)
        Returns the result of interpreting the object as an instance of 'Property Parameters'. 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 'Property Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • casePropertyType

        public T casePropertyType​(PropertyType object)
        Returns the result of interpreting the object as an instance of 'Property Type'. 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 'Property Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseResourceParameters

        public T caseResourceParameters​(ResourceParameters object)
        Returns the result of interpreting the object as an instance of 'Resource Parameters'. 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 'Resource Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseScenario

        public T caseScenario​(Scenario object)
        Returns the result of interpreting the object as an instance of 'Scenario'. 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 'Scenario'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseScenarioParameters

        public T caseScenarioParameters​(ScenarioParameters object)
        Returns the result of interpreting the object as an instance of 'Scenario Parameters'. 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 'Scenario Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseScenarioParametersType

        public T caseScenarioParametersType​(ScenarioParametersType object)
        Returns the result of interpreting the object as an instance of 'Scenario Parameters Type'. 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 'Scenario Parameters Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseStringParameterType

        public T caseStringParameterType​(StringParameterType object)
        Returns the result of interpreting the object as an instance of 'String Parameter Type'. 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 Parameter Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseTimeParameters

        public T caseTimeParameters​(TimeParameters object)
        Returns the result of interpreting the object as an instance of 'Time Parameters'. 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 'Time Parameters'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseTriangularDistributionType

        public T caseTriangularDistributionType​(TriangularDistributionType object)
        Returns the result of interpreting the object as an instance of 'Triangular Distribution Type'. 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 'Triangular Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseTruncatedNormalDistributionType

        public T caseTruncatedNormalDistributionType​(TruncatedNormalDistributionType object)
        Returns the result of interpreting the object as an instance of 'Truncated Normal Distribution Type'. 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 'Truncated Normal Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseUniformDistributionType

        public T caseUniformDistributionType​(UniformDistributionType object)
        Returns the result of interpreting the object as an instance of 'Uniform Distribution Type'. 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 'Uniform Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseUserDistributionDataPointType

        public T caseUserDistributionDataPointType​(UserDistributionDataPointType object)
        Returns the result of interpreting the object as an instance of 'User Distribution Data Point Type'. 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 'User Distribution Data Point Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseUserDistributionType

        public T caseUserDistributionType​(UserDistributionType object)
        Returns the result of interpreting the object as an instance of 'User Distribution Type'. 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 'User Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseVendorExtension

        public T caseVendorExtension​(VendorExtension object)
        Returns the result of interpreting the object as an instance of 'Vendor Extension'. 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 'Vendor Extension'.
        See Also:
        doSwitch(EObject)
        Generated code
      • caseWeibullDistributionType

        public T caseWeibullDistributionType​(WeibullDistributionType object)
        Returns the result of interpreting the object as an instance of 'Weibull Distribution Type'. 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 'Weibull Distribution Type'.
        See Also:
        doSwitch(EObject)
        Generated code
      • defaultCase

        public T defaultCase​(org.eclipse.emf.ecore.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.
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'EObject'.
        See Also:
        doSwitch(org.eclipse.emf.ecore.EObject)
        Generated code