Package scheduler.configuration.util
Class ConfigurationSwitch<T>
java.lang.Object
scheduler.configuration.util.ConfigurationSwitch<T>
- Direct Known Subclasses:
QueueingConfigurationSwitch
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 TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Active Resource Configuration'.Returns the result of interpreting the object as an instance of 'Dynamic Priority Boost Configuratioin'.caseIdentifier
(de.uka.ipd.sdq.identifier.Identifier object) Returns the result of interpreting the object as an instance of 'Identifier'.caseLoadBalancing
(LoadBalancing object) Returns the result of interpreting the object as an instance of 'Load Balancing'.Returns the result of interpreting the object as an instance of 'Multiple Queue Configuration'.Returns the result of interpreting the object as an instance of 'Passive Resource Configuration'.Returns the result of interpreting the object as an instance of 'Preemption Configuration'.Returns the result of interpreting the object as an instance of 'Priority Boost Configuration'.Returns the result of interpreting the object as an instance of 'Priority Configuration'.Returns the result of interpreting the object as an instance of 'Priority Dependent Time Slice Configuration'.casePriorityRange
(PriorityRange object) Returns the result of interpreting the object as an instance of 'Priority Range'.Returns the result of interpreting the object as an instance of 'Process Configuration'.Returns the result of interpreting the object as an instance of 'Quantum Time Slice Configuration'.Returns the result of interpreting the object as an instance of 'Queueing Configuration'.Returns the result of interpreting the object as an instance of 'Scheduler Configuration'.Returns the result of interpreting the object as an instance of 'Single Queue Configuration'.caseStarvationBoost
(StarvationBoost object) Returns the result of interpreting the object as an instance of 'Starvation Boost'.Returns the result of interpreting the object as an instance of 'Static Priority Boost'.Returns the result of interpreting the object as an instance of 'Static Priority Boost Configuration'.Returns the result of interpreting the object as an instance of 'Time Slice Configuration'.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 T
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
Field Details
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
ConfigurationSwitch
public ConfigurationSwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
doSwitch
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
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
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.
-
caseDynamicPriorityBoostConfiguratioin
Returns the result of interpreting the object as an instance of 'Dynamic Priority Boost Configuratioin'. 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 'Dynamic Priority Boost Configuratioin'.
- See Also:
- Generated class or method.
-
casePriorityBoostConfiguration
Returns the result of interpreting the object as an instance of 'Priority Boost Configuration'. 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 Boost Configuration'.
- See Also:
- Generated class or method.
-
caseLoadBalancing
Returns the result of interpreting the object as an instance of 'Load Balancing'. 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 'Load Balancing'.
- See Also:
- Generated class or method.
-
caseMultipleQueueConfiguration
Returns the result of interpreting the object as an instance of 'Multiple Queue Configuration'. 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 'Multiple Queue Configuration'.
- See Also:
- Generated class or method.
-
caseQueueingConfiguration
Returns the result of interpreting the object as an instance of 'Queueing Configuration'. 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 'Queueing Configuration'.
- See Also:
- Generated class or method.
-
caseQuantumTimeSliceConfiguration
Returns the result of interpreting the object as an instance of 'Quantum Time Slice Configuration'. 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 'Quantum Time Slice Configuration'.
- See Also:
- Generated class or method.
-
caseTimeSliceConfiguration
Returns the result of interpreting the object as an instance of 'Time Slice Configuration'. 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 Slice Configuration'.
- See Also:
- Generated class or method.
-
casePreemptionConfiguration
Returns the result of interpreting the object as an instance of 'Preemption Configuration'. 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 'Preemption Configuration'.
- See Also:
- Generated class or method.
-
casePriorityConfiguration
Returns the result of interpreting the object as an instance of 'Priority Configuration'. 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 Configuration'.
- See Also:
- Generated class or method.
-
casePriorityRange
Returns the result of interpreting the object as an instance of 'Priority Range'. 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 Range'.
- See Also:
- Generated class or method.
-
casePriorityDependentTimeSliceConfiguration
public T casePriorityDependentTimeSliceConfiguration(PriorityDependentTimeSliceConfiguration object) Returns the result of interpreting the object as an instance of 'Priority Dependent Time Slice Configuration'. 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 Dependent Time Slice Configuration'.
- See Also:
- Generated class or method.
-
caseActiveResourceConfiguration
Returns the result of interpreting the object as an instance of 'Active Resource Configuration'. 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 Resource Configuration'.
- See Also:
- Generated class or method.
-
casePassiveResourceConfiguration
Returns the result of interpreting the object as an instance of 'Passive Resource Configuration'. 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 Configuration'.
- See Also:
- Generated class or method.
-
caseStaticPriorityBoost
Returns the result of interpreting the object as an instance of 'Static Priority Boost'. 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 'Static Priority Boost'.
- See Also:
- Generated class or method.
-
caseProcessConfiguration
Returns the result of interpreting the object as an instance of 'Process Configuration'. 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 Configuration'.
- See Also:
- Generated class or method.
-
caseSingleQueueConfiguration
Returns the result of interpreting the object as an instance of 'Single Queue Configuration'. 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 'Single Queue Configuration'.
- See Also:
- Generated class or method.
-
caseStaticPriorityBoostConfiguration
Returns the result of interpreting the object as an instance of 'Static Priority Boost Configuration'. 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 'Static Priority Boost Configuration'.
- See Also:
- Generated class or method.
-
caseSchedulerConfiguration
Returns the result of interpreting the object as an instance of 'Scheduler Configuration'. 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 'Scheduler Configuration'.
- See Also:
- Generated class or method.
-
caseStarvationBoost
Returns the result of interpreting the object as an instance of 'Starvation Boost'. 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 'Starvation Boost'.
- 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.
-
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.- 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.
-