Package bpsim.util
Class BpsimSwitch<T>
- java.lang.Object
-
- bpsim.util.BpsimSwitch<T>
-
public class BpsimSwitch<T> extends Object
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)to invoke thecaseXXXmethod 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 Summary
Fields Modifier and Type Field Description protected static BpsimPackagemodelPackageThe cached model package
-
Constructor Summary
Constructors Constructor Description BpsimSwitch()Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcaseBetaDistributionType(BetaDistributionType object)Returns the result of interpreting the object as an instance of 'Beta Distribution Type'.TcaseBinomialDistributionType(BinomialDistributionType object)Returns the result of interpreting the object as an instance of 'Binomial Distribution Type'.TcaseBooleanParameterType(BooleanParameterType object)Returns the result of interpreting the object as an instance of 'Boolean Parameter Type'.TcaseBPSimDataType(BPSimDataType object)Returns the result of interpreting the object as an instance of 'BP Sim Data Type'.TcaseCalendar(Calendar object)Returns the result of interpreting the object as an instance of 'Calendar'.TcaseConstantParameter(ConstantParameter object)Returns the result of interpreting the object as an instance of 'Constant Parameter'.TcaseControlParameters(ControlParameters object)Returns the result of interpreting the object as an instance of 'Control Parameters'.TcaseCostParameters(CostParameters object)Returns the result of interpreting the object as an instance of 'Cost Parameters'.TcaseDateTimeParameterType(DateTimeParameterType object)Returns the result of interpreting the object as an instance of 'Date Time Parameter Type'.TcaseDistributionParameter(DistributionParameter object)Returns the result of interpreting the object as an instance of 'Distribution Parameter'.TcaseDocumentRoot(DocumentRoot object)Returns the result of interpreting the object as an instance of 'Document Root'.TcaseDurationParameterType(DurationParameterType object)Returns the result of interpreting the object as an instance of 'Duration Parameter Type'.TcaseElementParameters(ElementParameters object)Returns the result of interpreting the object as an instance of 'Element Parameters'.TcaseElementParametersType(ElementParametersType object)Returns the result of interpreting the object as an instance of 'Element Parameters Type'.TcaseEnumParameterType(EnumParameterType object)Returns the result of interpreting the object as an instance of 'Enum Parameter Type'.TcaseErlangDistributionType(ErlangDistributionType object)Returns the result of interpreting the object as an instance of 'Erlang Distribution Type'.TcaseExpressionParameterType(ExpressionParameterType object)Returns the result of interpreting the object as an instance of 'Expression Parameter Type'.TcaseFloatingParameterType(FloatingParameterType object)Returns the result of interpreting the object as an instance of 'Floating Parameter Type'.TcaseGammaDistributionType(GammaDistributionType object)Returns the result of interpreting the object as an instance of 'Gamma Distribution Type'.TcaseLogNormalDistributionType(LogNormalDistributionType object)Returns the result of interpreting the object as an instance of 'Log Normal Distribution Type'.TcaseNegativeExponentialDistributionType(NegativeExponentialDistributionType object)Returns the result of interpreting the object as an instance of 'Negative Exponential Distribution Type'.TcaseNormalDistributionType(NormalDistributionType object)Returns the result of interpreting the object as an instance of 'Normal Distribution Type'.TcaseNumericParameterType(NumericParameterType object)Returns the result of interpreting the object as an instance of 'Numeric Parameter Type'.TcaseParameter(Parameter object)Returns the result of interpreting the object as an instance of 'Parameter'.TcaseParameterValue(ParameterValue object)Returns the result of interpreting the object as an instance of 'Parameter Value'.TcasePoissonDistributionType(PoissonDistributionType object)Returns the result of interpreting the object as an instance of 'Poisson Distribution Type'.TcasePriorityParameters(PriorityParameters object)Returns the result of interpreting the object as an instance of 'Priority Parameters'.TcasePropertyParameters(PropertyParameters object)Returns the result of interpreting the object as an instance of 'Property Parameters'.TcasePropertyType(PropertyType object)Returns the result of interpreting the object as an instance of 'Property Type'.TcaseResourceParameters(ResourceParameters object)Returns the result of interpreting the object as an instance of 'Resource Parameters'.TcaseScenario(Scenario object)Returns the result of interpreting the object as an instance of 'Scenario'.TcaseScenarioParameters(ScenarioParameters object)Returns the result of interpreting the object as an instance of 'Scenario Parameters'.TcaseScenarioParametersType(ScenarioParametersType object)Returns the result of interpreting the object as an instance of 'Scenario Parameters Type'.TcaseStringParameterType(StringParameterType object)Returns the result of interpreting the object as an instance of 'String Parameter Type'.TcaseTimeParameters(TimeParameters object)Returns the result of interpreting the object as an instance of 'Time Parameters'.TcaseTriangularDistributionType(TriangularDistributionType object)Returns the result of interpreting the object as an instance of 'Triangular Distribution Type'.TcaseTruncatedNormalDistributionType(TruncatedNormalDistributionType object)Returns the result of interpreting the object as an instance of 'Truncated Normal Distribution Type'.TcaseUniformDistributionType(UniformDistributionType object)Returns the result of interpreting the object as an instance of 'Uniform Distribution Type'.TcaseUserDistributionDataPointType(UserDistributionDataPointType object)Returns the result of interpreting the object as an instance of 'User Distribution Data Point Type'.TcaseUserDistributionType(UserDistributionType object)Returns the result of interpreting the object as an instance of 'User Distribution Type'.TcaseVendorExtension(VendorExtension object)Returns the result of interpreting the object as an instance of 'Vendor Extension'.TcaseWeibullDistributionType(WeibullDistributionType object)Returns the result of interpreting the object as an instance of 'Weibull Distribution Type'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected TdoSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.TdoSwitch(org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
-
-
-
Field Detail
-
modelPackage
protected static BpsimPackage modelPackage
The cached model package- Generated code
-
-
Method Detail
-
doSwitch
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXXfor 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
caseXXXcall. - Generated code
-
doSwitch
protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXXfor 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
caseXXXcall. - Generated code
-
doSwitch
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
CallscaseXXXfor 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
caseXXXcall. - 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
-
-