Package tools.descartes.dlim.util
Class DlimSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
tools.descartes.dlim.util.DlimSwitch<T>
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAbsoluteSin
(AbsoluteSin object) Returns the result of interpreting the object as an instance of 'Absolute Sin'.Returns the result of interpreting the object as an instance of 'Absolute Value Function'.Returns the result of interpreting the object as an instance of 'Arrival Rates From File'.Returns the result of interpreting the object as an instance of 'Burst'.caseCombinator
(Combinator object) Returns the result of interpreting the object as an instance of 'Combinator'.caseConstant
(Constant object) Returns the result of interpreting the object as an instance of 'Constant'.Returns the result of interpreting the object as an instance of 'Exponential Increase And Decline'.Returns the result of interpreting the object as an instance of 'Exponential Increase Logarithmic Decline'.caseExponentialTrend
(ExponentialTrend object) Returns the result of interpreting the object as an instance of 'Exponential Trend'.caseFunction
(Function object) Returns the result of interpreting the object as an instance of 'Function'.Returns the result of interpreting the object as an instance of 'Linear Increase And Decline'.caseLinearTrend
(LinearTrend object) Returns the result of interpreting the object as an instance of 'Linear Trend'.caseLogarithmicTrend
(LogarithmicTrend object) Returns the result of interpreting the object as an instance of 'Logarithmic Trend'.Returns the result of interpreting the object as an instance of 'Noise'.caseNormalNoise
(NormalNoise object) Returns the result of interpreting the object as an instance of 'Normal Noise'.casePolynomial
(Polynomial object) Returns the result of interpreting the object as an instance of 'Polynomial'.casePolynomialFactor
(PolynomialFactor object) Returns the result of interpreting the object as an instance of 'Polynomial Factor'.Returns the result of interpreting the object as an instance of 'Reference Clock Object'.caseSeasonal
(Seasonal object) Returns the result of interpreting the object as an instance of 'Seasonal'.caseSequence
(Sequence object) Returns the result of interpreting the object as an instance of 'Sequence'.Returns the result of interpreting the object as an instance of ' Sin'.caseSinTrend
(SinTrend object) Returns the result of interpreting the object as an instance of 'Sin Trend'.Returns the result of interpreting the object as an instance of 'Time Dependent Function Container'.Returns the result of interpreting the object as an instance of 'Trend'.caseUniformNoise
(UniformNoise object) Returns the result of interpreting the object as an instance of 'Uniform Noise'.Returns the result of interpreting the object as an instance of 'Univariate Function'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
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
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
DlimSwitch
public DlimSwitch()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<T>
- 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. -
caseSequence
Returns the result of interpreting the object as an instance of 'Sequence'. 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 'Sequence'.
- See Also:
- Generated class or method.
-
caseCombinator
Returns the result of interpreting the object as an instance of 'Combinator'. 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 'Combinator'.
- See Also:
- Generated class or method.
-
caseTimeDependentFunctionContainer
Returns the result of interpreting the object as an instance of 'Time Dependent Function Container'. 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 Dependent Function Container'.
- See Also:
- Generated class or method.
-
caseFunction
Returns the result of interpreting the object as an instance of '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 'Function'.
- See Also:
- Generated class or method.
-
caseSeasonal
Returns the result of interpreting the object as an instance of 'Seasonal'. 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 'Seasonal'.
- See Also:
- Generated class or method.
-
caseNoise
Returns the result of interpreting the object as an instance of 'Noise'. 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 'Noise'.
- See Also:
- Generated class or method.
-
caseUniformNoise
Returns the result of interpreting the object as an instance of 'Uniform Noise'. 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 Noise'.
- See Also:
- Generated class or method.
-
caseNormalNoise
Returns the result of interpreting the object as an instance of 'Normal Noise'. 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 Noise'.
- See Also:
- Generated class or method.
-
caseBurst
Returns the result of interpreting the object as an instance of 'Burst'. 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 'Burst'.
- See Also:
- Generated class or method.
-
caseTrend
Returns the result of interpreting the object as an instance of 'Trend'. 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 'Trend'.
- See Also:
- Generated class or method.
-
caseConstant
Returns the result of interpreting the object as an instance of 'Constant'. 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'.
- See Also:
- Generated class or method.
-
caseSin
Returns the result of interpreting the object as an instance of ' Sin'. 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 ' Sin'.
- See Also:
- Generated class or method.
-
caseExponentialIncreaseAndDecline
Returns the result of interpreting the object as an instance of 'Exponential Increase And Decline'. 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 Increase And Decline'.
- See Also:
- Generated class or method.
-
caseExponentialIncreaseLogarithmicDecline
Returns the result of interpreting the object as an instance of 'Exponential Increase Logarithmic Decline'. 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 Increase Logarithmic Decline'.
- See Also:
- Generated class or method.
-
caseLinearIncreaseAndDecline
Returns the result of interpreting the object as an instance of 'Linear Increase And Decline'. 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 'Linear Increase And Decline'.
- See Also:
- Generated class or method.
-
caseAbsoluteSin
Returns the result of interpreting the object as an instance of 'Absolute Sin'. 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 'Absolute Sin'.
- See Also:
- Generated class or method.
-
caseLinearTrend
Returns the result of interpreting the object as an instance of 'Linear Trend'. 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 'Linear Trend'.
- See Also:
- Generated class or method.
-
caseExponentialTrend
Returns the result of interpreting the object as an instance of 'Exponential Trend'. 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 Trend'.
- See Also:
- Generated class or method.
-
caseLogarithmicTrend
Returns the result of interpreting the object as an instance of 'Logarithmic Trend'. 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 'Logarithmic Trend'.
- See Also:
- Generated class or method.
-
caseSinTrend
Returns the result of interpreting the object as an instance of 'Sin Trend'. 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 'Sin Trend'.
- See Also:
- Generated class or method.
-
caseReferenceClockObject
Returns the result of interpreting the object as an instance of 'Reference Clock Object'. 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 'Reference Clock Object'.
- See Also:
- Generated class or method.
-
caseArrivalRatesFromFile
Returns the result of interpreting the object as an instance of 'Arrival Rates From File'. 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 'Arrival Rates From File'.
- See Also:
- Generated class or method.
-
caseAbsoluteValueFunction
Returns the result of interpreting the object as an instance of 'Absolute Value 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 'Absolute Value Function'.
- See Also:
- Generated class or method.
-
caseUnivariateFunction
Returns the result of interpreting the object as an instance of 'Univariate 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 'Univariate Function'.
- See Also:
- Generated class or method.
-
casePolynomial
Returns the result of interpreting the object as an instance of 'Polynomial'. 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 'Polynomial'.
- See Also:
- Generated class or method.
-
casePolynomialFactor
Returns the result of interpreting the object as an instance of 'Polynomial Factor'. 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 'Polynomial Factor'.
- 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<T>
- 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.
-