scheduler.configuration.util
Class ConfigurationSwitch<T>

java.lang.Object
  extended by scheduler.configuration.util.ConfigurationSwitch<T>
Direct Known Subclasses:
QueueingConfigurationSwitch

public class ConfigurationSwitch<T>
extends Object

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:
ConfigurationPackage

Field Summary
protected static ConfigurationPackage modelPackage
          The cached model package
 
Constructor Summary
ConfigurationSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseActiveResourceConfiguration(ActiveResourceConfiguration object)
          Returns the result of interpreting the object as an instance of 'Active Resource Configuration'.
 T caseDynamicPriorityBoostConfiguratioin(DynamicPriorityBoostConfiguratioin object)
          Returns the result of interpreting the object as an instance of 'Dynamic Priority Boost Configuratioin'.
 T caseIdentifier(Identifier object)
          Returns the result of interpreting the object as an instance of 'Identifier'.
 T caseLoadBalancing(LoadBalancing object)
          Returns the result of interpreting the object as an instance of 'Load Balancing'.
 T caseMultipleQueueConfiguration(MultipleQueueConfiguration object)
          Returns the result of interpreting the object as an instance of 'Multiple Queue Configuration'.
 T casePassiveResourceConfiguration(PassiveResourceConfiguration object)
          Returns the result of interpreting the object as an instance of 'Passive Resource Configuration'.
 T casePredefinedTimeSliceConfiguration(PredefinedTimeSliceConfiguration object)
          Returns the result of interpreting the object as an instance of 'Predefined Time Slice Configuration'.
 T casePreemptionConfiguration(PreemptionConfiguration object)
          Returns the result of interpreting the object as an instance of 'Preemption Configuration'.
 T casePriorityBoostConfiguration(PriorityBoostConfiguration object)
          Returns the result of interpreting the object as an instance of 'Priority Boost Configuration'.
 T casePriorityConfiguration(PriorityConfiguration object)
          Returns the result of interpreting the object as an instance of 'Priority Configuration'.
 T casePriorityDependentTimeSliceConfiguration(PriorityDependentTimeSliceConfiguration object)
          Returns the result of interpreting the object as an instance of 'Priority Dependent Time Slice Configuration'.
 T casePriorityRange(PriorityRange object)
          Returns the result of interpreting the object as an instance of 'Priority Range'.
 T caseProcessConfiguration(ProcessConfiguration object)
          Returns the result of interpreting the object as an instance of 'Process Configuration'.
 T caseQueueingConfiguration(QueueingConfiguration object)
          Returns the result of interpreting the object as an instance of 'Queueing Configuration'.
 T caseSchedulerConfiguration(SchedulerConfiguration object)
          Returns the result of interpreting the object as an instance of 'Scheduler Configuration'.
 T caseSingleQueueConfiguration(SingleQueueConfiguration object)
          Returns the result of interpreting the object as an instance of 'Single Queue Configuration'.
 T caseStaticPriorityBoost(StaticPriorityBoost object)
          Returns the result of interpreting the object as an instance of 'Static Priority Boost'.
 T caseStaticPriorityBoostConfiguration(StaticPriorityBoostConfiguration object)
          Returns the result of interpreting the object as an instance of 'Static Priority Boost Configuration'.
 T caseTimeSliceConfiguration(TimeSliceConfiguration object)
          Returns the result of interpreting the object as an instance of 'Time Slice Configuration'.
 T caseTimeValue(TimeValue object)
          Returns the result of interpreting the object as an instance of 'Time Value'.
 T caseUnitCarryingElement(UnitCarryingElement object)
          Returns the result of interpreting the object as an instance of 'Unit Carrying Element'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
protected  T doSwitch(EClass theEClass, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 T doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
protected  T doSwitch(int classifierID, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static ConfigurationPackage modelPackage
The cached model package

Constructor Detail

ConfigurationSwitch

public ConfigurationSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX 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.

doSwitch

protected T doSwitch(EClass theEClass,
                     EObject theEObject)
Calls caseXXX 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.

doSwitch

protected T doSwitch(int classifierID,
                     EObject theEObject)
Calls caseXXX 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.

caseTimeValue

public T caseTimeValue(TimeValue object)
Returns the result of interpreting the object as an instance of 'Time 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 'Time Value'.
See Also:
doSwitch(EObject)

caseDynamicPriorityBoostConfiguratioin

public T caseDynamicPriorityBoostConfiguratioin(DynamicPriorityBoostConfiguratioin object)
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:
doSwitch(EObject)

casePriorityBoostConfiguration

public T casePriorityBoostConfiguration(PriorityBoostConfiguration object)
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:
doSwitch(EObject)

caseLoadBalancing

public T caseLoadBalancing(LoadBalancing object)
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:
doSwitch(EObject)

caseMultipleQueueConfiguration

public T caseMultipleQueueConfiguration(MultipleQueueConfiguration object)
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:
doSwitch(EObject)

caseQueueingConfiguration

public T caseQueueingConfiguration(QueueingConfiguration object)
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:
doSwitch(EObject)

casePredefinedTimeSliceConfiguration

public T casePredefinedTimeSliceConfiguration(PredefinedTimeSliceConfiguration object)
Returns the result of interpreting the object as an instance of 'Predefined 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 'Predefined Time Slice Configuration'.
See Also:
doSwitch(EObject)

caseTimeSliceConfiguration

public T caseTimeSliceConfiguration(TimeSliceConfiguration object)
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:
doSwitch(EObject)

casePreemptionConfiguration

public T casePreemptionConfiguration(PreemptionConfiguration object)
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:
doSwitch(EObject)

casePriorityConfiguration

public T casePriorityConfiguration(PriorityConfiguration object)
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:
doSwitch(EObject)

casePriorityRange

public T casePriorityRange(PriorityRange object)
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:
doSwitch(EObject)

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:
doSwitch(EObject)

caseActiveResourceConfiguration

public T caseActiveResourceConfiguration(ActiveResourceConfiguration object)
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:
doSwitch(EObject)

casePassiveResourceConfiguration

public T casePassiveResourceConfiguration(PassiveResourceConfiguration object)
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:
doSwitch(EObject)

caseStaticPriorityBoost

public T caseStaticPriorityBoost(StaticPriorityBoost object)
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:
doSwitch(EObject)

caseProcessConfiguration

public T caseProcessConfiguration(ProcessConfiguration object)
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:
doSwitch(EObject)

caseSingleQueueConfiguration

public T caseSingleQueueConfiguration(SingleQueueConfiguration object)
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:
doSwitch(EObject)

caseStaticPriorityBoostConfiguration

public T caseStaticPriorityBoostConfiguration(StaticPriorityBoostConfiguration object)
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:
doSwitch(EObject)

caseSchedulerConfiguration

public T caseSchedulerConfiguration(SchedulerConfiguration object)
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:
doSwitch(EObject)

caseUnitCarryingElement

public T caseUnitCarryingElement(UnitCarryingElement object)
Returns the result of interpreting the object as an instance of 'Unit Carrying 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 'Unit Carrying Element'.
See Also:
doSwitch(EObject)

caseIdentifier

public T caseIdentifier(Identifier object)
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:
doSwitch(EObject)

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)