Class SimucomstatusSwitch<T>
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.simucomstatus.util.SimucomstatusSwitch<T>
-
- Direct Known Subclasses:
ProcessActionPrintVisitor
public class SimucomstatusSwitch<T> extends Object
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
SimucomstatusPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static SimucomstatusPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description SimucomstatusSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'.T
caseActiveResouce(ActiveResouce object)
Returns the result of interpreting the object as an instance of 'Active Resouce'.T
casePassiveResource(PassiveResource object)
Returns the result of interpreting the object as an instance of 'Passive Resource'.T
caseProcess(Process object)
Returns the result of interpreting the object as an instance of 'Process'.T
caseSimuComStatus(SimuComStatus object)
Returns the result of interpreting the object as an instance of 'Simu Com Status'.T
caseSimulatedProcesses(SimulatedProcesses object)
Returns the result of interpreting the object as an instance of 'Simulated Processes '.T
caseSimulatedResources(SimulatedResources object)
Returns the result of interpreting the object as an instance of 'Simulated Resources '.T
caseWaitForAcquire(WaitForAcquire object)
Returns the result of interpreting the object as an instance of 'Wait For Acquire'.T
caseWaitForDelay(WaitForDelay object)
Returns the result of interpreting the object as an instance of 'Wait For Delay'.T
caseWaitForDemand(WaitForDemand object)
Returns the result of interpreting the object as an instance of 'Wait For Demand'.T
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch(int classifierID, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected T
doSwitch(EClass theEClass, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.T
doSwitch(EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
-
-
Field Detail
-
modelPackage
protected static SimucomstatusPackage modelPackage
The cached model package- Generated class or method.
-
-
Method Detail
-
doSwitch
public T doSwitch(EObject theEObject)
CallscaseXXX
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 class or method.
-
doSwitch
protected T doSwitch(EClass theEClass, EObject theEObject)
CallscaseXXX
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 class or method.
-
doSwitch
protected T doSwitch(int classifierID, EObject theEObject)
CallscaseXXX
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 class or method.
-
caseSimuComStatus
public T caseSimuComStatus(SimuComStatus object)
Returns the result of interpreting the object as an instance of 'Simu Com Status'. 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 'Simu Com Status'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSimulatedProcesses
public T caseSimulatedProcesses(SimulatedProcesses object)
Returns the result of interpreting the object as an instance of 'Simulated Processes '. 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 'Simulated Processes '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseProcess
public T caseProcess(Process object)
Returns the result of interpreting the object as an instance of 'Process'. 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 'Process'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseAction
public T caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'. 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 'Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSimulatedResources
public T caseSimulatedResources(SimulatedResources object)
Returns the result of interpreting the object as an instance of 'Simulated Resources '. 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 'Simulated Resources '.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseActiveResouce
public T caseActiveResouce(ActiveResouce object)
Returns the result of interpreting the object as an instance of 'Active Resouce'. 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 'Active Resouce'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseWaitForDemand
public T caseWaitForDemand(WaitForDemand object)
Returns the result of interpreting the object as an instance of 'Wait For Demand'. 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 'Wait For Demand'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
casePassiveResource
public T casePassiveResource(PassiveResource object)
Returns the result of interpreting the object as an instance of 'Passive Resource'. 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 'Passive Resource'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseWaitForAcquire
public T caseWaitForAcquire(WaitForAcquire object)
Returns the result of interpreting the object as an instance of 'Wait For Acquire'. 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 'Wait For Acquire'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseWaitForDelay
public T caseWaitForDelay(WaitForDelay object)
Returns the result of interpreting the object as an instance of 'Wait For Delay'. 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 'Wait For Delay'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
defaultCase
public T 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.- 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 class or method.
-
-