Class FailuretypeSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.failuremodel.failuretype.util.FailuretypeSwitch<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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseByzantine
(Byzantine<Failuretype> object) Returns the result of interpreting the object as an instance of 'Byzantine'.caseContent
(Content object) Returns the result of interpreting the object as an instance of 'Content'.Returns the result of interpreting the object as an instance of 'Crash'.caseDomain
(Domain object) Returns the result of interpreting the object as an instance of 'Domain'.caseEntity
(org.palladiosimulator.pcm.core.entity.Entity object) Returns the result of interpreting the object as an instance of 'Entity'.caseFailure
(Failure object) Returns the result of interpreting the object as an instance of 'Failure'.Returns the result of interpreting the object as an instance of 'Failure Type Repository'.Returns the result of interpreting the object as an instance of 'HW Byzantine Failure'.caseHWContentFailure
(HWContentFailure object) Returns the result of interpreting the object as an instance of 'HW Content Failure'.caseHWCrashFailure
(HWCrashFailure object) Returns the result of interpreting the object as an instance of 'HW Crash Failure'.caseHWFailure
(HWFailure object) Returns the result of interpreting the object as an instance of 'HW Failure'.caseHWTimingFailure
(HWTimingFailure object) Returns the result of interpreting the object as an instance of 'HW Timing Failure'.Returns the result of interpreting the object as an instance of 'HW Transient Failure'.caseIdentifier
(de.uka.ipd.sdq.identifier.Identifier object) Returns the result of interpreting the object as an instance of 'Identifier'.Returns the result of interpreting the object as an instance of 'Link Byzantine Failure'.Returns the result of interpreting the object as an instance of 'Link Content Failure'.caseLinkCrashFailure
(LinkCrashFailure object) Returns the result of interpreting the object as an instance of 'Link Crash Failure'.caseLinkFailure
(LinkFailure object) Returns the result of interpreting the object as an instance of 'Link Failure'.Returns the result of interpreting the object as an instance of 'Link Timing Failure'.Returns the result of interpreting the object as an instance of 'Link Transient Failure'.Returns the result of interpreting the object as an instance of 'Mode'.caseNamedElement
(org.palladiosimulator.pcm.core.entity.NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.casePCMBaseClass
(org.palladiosimulator.pcm.PCMBaseClass object) Returns the result of interpreting the object as an instance of 'PCM Base Class'.casePCMClass
(org.palladiosimulator.pcm.PCMClass object) Returns the result of interpreting the object as an instance of 'PCM Class'.Returns the result of interpreting the object as an instance of 'SW Byzantine Failure'.caseSWContentFailure
(SWContentFailure object) Returns the result of interpreting the object as an instance of 'SW Content Failure'.caseSWCrashFailure
(SWCrashFailure object) Returns the result of interpreting the object as an instance of 'SW Crash Failure'.caseSWFailure
(SWFailure object) Returns the result of interpreting the object as an instance of 'SW Failure'.caseSWTimingFailure
(SWTimingFailure object) Returns the result of interpreting the object as an instance of 'SW Timing Failure'.Returns the result of interpreting the object as an instance of 'SW Transient Failure'.caseTiming
(Timing object) Returns the result of interpreting the object as an instance of 'Timing'.caseTransient
(Transient<Failuretype> object) Returns the result of interpreting the object as an instance of 'Transient'.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
-
FailuretypeSwitch
public FailuretypeSwitch()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>
- Parameters:
ePackage
- the package in question.- 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. -
caseFailureTypeRepository
Returns the result of interpreting the object as an instance of 'Failure Type Repository'. 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 'Failure Type Repository'.
- See Also:
- Generated class or method.
-
caseFailure
Returns the result of interpreting the object as an instance of 'Failure'. 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 'Failure'.
- See Also:
- Generated class or method.
-
caseSWFailure
Returns the result of interpreting the object as an instance of 'SW Failure'. 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 'SW Failure'.
- See Also:
- Generated class or method.
-
caseHWFailure
Returns the result of interpreting the object as an instance of 'HW Failure'. 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 'HW Failure'.
- See Also:
- Generated class or method.
-
caseLinkFailure
Returns the result of interpreting the object as an instance of 'Link Failure'. 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 'Link Failure'.
- See Also:
- Generated class or method.
-
caseDomain
Returns the result of interpreting the object as an instance of 'Domain'. 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 'Domain'.
- See Also:
- Generated class or method.
-
caseContent
Returns the result of interpreting the object as an instance of 'Content'. 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 'Content'.
- See Also:
- Generated class or method.
-
caseTiming
Returns the result of interpreting the object as an instance of 'Timing'. 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 'Timing'.
- See Also:
- Generated class or method.
-
caseCrash
Returns the result of interpreting the object as an instance of 'Crash'. 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 'Crash'.
- See Also:
- Generated class or method.
-
caseMode
Returns the result of interpreting the object as an instance of 'Mode'. 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 'Mode'.
- See Also:
- Generated class or method.
-
caseTransient
Returns the result of interpreting the object as an instance of 'Transient'. 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 'Transient'.
- See Also:
- Generated class or method.
-
caseByzantine
Returns the result of interpreting the object as an instance of 'Byzantine'. 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 'Byzantine'.
- See Also:
- Generated class or method.
-
caseSWCrashFailure
Returns the result of interpreting the object as an instance of 'SW Crash Failure'. 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 'SW Crash Failure'.
- See Also:
- Generated class or method.
-
caseSWTimingFailure
Returns the result of interpreting the object as an instance of 'SW Timing Failure'. 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 'SW Timing Failure'.
- See Also:
- Generated class or method.
-
caseSWContentFailure
Returns the result of interpreting the object as an instance of 'SW Content Failure'. 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 'SW Content Failure'.
- See Also:
- Generated class or method.
-
caseSWTransientFailure
Returns the result of interpreting the object as an instance of 'SW Transient Failure'. 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 'SW Transient Failure'.
- See Also:
- Generated class or method.
-
caseSWByzantineFailure
Returns the result of interpreting the object as an instance of 'SW Byzantine Failure'. 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 'SW Byzantine Failure'.
- See Also:
- Generated class or method.
-
caseHWCrashFailure
Returns the result of interpreting the object as an instance of 'HW Crash Failure'. 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 'HW Crash Failure'.
- See Also:
- Generated class or method.
-
caseHWTimingFailure
Returns the result of interpreting the object as an instance of 'HW Timing Failure'. 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 'HW Timing Failure'.
- See Also:
- Generated class or method.
-
caseHWContentFailure
Returns the result of interpreting the object as an instance of 'HW Content Failure'. 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 'HW Content Failure'.
- See Also:
- Generated class or method.
-
caseHWTransientFailure
Returns the result of interpreting the object as an instance of 'HW Transient Failure'. 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 'HW Transient Failure'.
- See Also:
- Generated class or method.
-
caseHWByzantineFailure
Returns the result of interpreting the object as an instance of 'HW Byzantine Failure'. 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 'HW Byzantine Failure'.
- See Also:
- Generated class or method.
-
caseLinkCrashFailure
Returns the result of interpreting the object as an instance of 'Link Crash Failure'. 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 'Link Crash Failure'.
- See Also:
- Generated class or method.
-
caseLinkTimingFailure
Returns the result of interpreting the object as an instance of 'Link Timing Failure'. 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 'Link Timing Failure'.
- See Also:
- Generated class or method.
-
caseLinkContentFailure
Returns the result of interpreting the object as an instance of 'Link Content Failure'. 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 'Link Content Failure'.
- See Also:
- Generated class or method.
-
caseLinkTransientFailure
Returns the result of interpreting the object as an instance of 'Link Transient Failure'. 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 'Link Transient Failure'.
- See Also:
- Generated class or method.
-
caseLinkByzantineFailure
Returns the result of interpreting the object as an instance of 'Link Byzantine Failure'. 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 'Link Byzantine Failure'.
- See Also:
- Generated class or method.
-
caseIdentifier
Returns the result of interpreting the object as an instance of 'Identifier'. 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 'Identifier'.
- See Also:
- Generated class or method.
-
casePCMClass
Returns the result of interpreting the object as an instance of 'PCM Class'. 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 'PCM Class'.
- See Also:
- Generated class or method.
-
casePCMBaseClass
Returns the result of interpreting the object as an instance of 'PCM Base Class'. 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 'PCM Base Class'.
- See Also:
- Generated class or method.
-
caseNamedElement
Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'.
- See Also:
- Generated class or method.
-
caseEntity
Returns the result of interpreting the object as an instance of 'Entity'. 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 'Entity'.
- 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.
-