org.eclipse.ohf.stem.diseasemodels.standard.util
Class StandardSwitch<T>

java.lang.Object
  extended by org.eclipse.ohf.stem.diseasemodels.standard.util.StandardSwitch<T>

public class StandardSwitch<T>
extends java.lang.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:
StandardPackage

Constructor Summary
StandardSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAggregatingDiseaseModelState(AggregatingDiseaseModelState object)
          Returns the result of interpretting the object as an instance of 'Aggregating Disease Model State'.
 T caseAggregatingSEIRDiseaseModel(AggregatingSEIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Aggregating SEIR Disease Model'.
 T caseAggregatingSIDiseaseModel(AggregatingSIDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Aggregating SI Disease Model'.
 T caseAggregatingSIRDiseaseModel(AggregatingSIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Aggregating SIR Disease Model'.
 T caseDecorator(Decorator object)
          Returns the result of interpretting the object as an instance of 'Decorator'.
 T caseDeterministicSEIRDiseaseModel(DeterministicSEIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Deterministic SEIR Disease Model'.
 T caseDeterministicSIDiseaseModel(DeterministicSIDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Deterministic SI Disease Model'.
 T caseDeterministicSIRDiseaseModel(DeterministicSIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Deterministic SIR Disease Model'.
 T caseDiseaseModel(DiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Disease Model'.
 T caseDiseaseModelLabel(DiseaseModelLabel object)
          Returns the result of interpretting the object as an instance of 'Disease Model Label'.
 T caseDiseaseModelLabelValue(DiseaseModelLabelValue object)
          Returns the result of interpretting the object as an instance of 'Disease Model Label Value'.
 T caseDiseaseModelState(DiseaseModelState object)
          Returns the result of interpretting the object as an instance of 'Disease Model State'.
 T caseDynamicLabel(DynamicLabel object)
          Returns the result of interpretting the object as an instance of 'Dynamic Label'.
 T caseDynamicNodeLabel(DynamicNodeLabel object)
          Returns the result of interpretting the object as an instance of 'Dynamic Node Label'.
 T caseIdentifiable(Identifiable object)
          Returns the result of interpretting the object as an instance of 'Identifiable'.
 T caseInfector(Infector object)
          Returns the result of interpretting the object as an instance of 'Infector'.
 T caseLabel(Label object)
          Returns the result of interpretting the object as an instance of 'Label'.
 T caseLabelValue(LabelValue object)
          Returns the result of interpretting the object as an instance of 'Label Value'.
 T caseNodeDecorator(NodeDecorator object)
          Returns the result of interpretting the object as an instance of 'Node Decorator'.
 T caseNodeLabel(NodeLabel object)
          Returns the result of interpretting the object as an instance of 'Node Label'.
 T caseSanityChecker_1(SanityChecker object)
          Returns the result of interpretting the object as an instance of 'Sanity Checker'.
 T caseSanityChecker(SanityChecker object)
          Returns the result of interpretting the object as an instance of 'Sanity Checker'.
 T caseSEIR(SEIR object)
          Returns the result of interpretting the object as an instance of 'SEIR'.
 T caseSEIRLabel(SEIRLabel object)
          Returns the result of interpretting the object as an instance of 'SEIR Label'.
 T caseSEIRLabelValue(SEIRLabelValue object)
          Returns the result of interpretting the object as an instance of 'SEIR Label Value'.
 T caseSI(SI object)
          Returns the result of interpretting the object as an instance of 'SI'.
 T caseSIDiseaseModelState(SIDiseaseModelState object)
          Returns the result of interpretting the object as an instance of 'SI Disease Model State'.
 T caseSIInfector(SIInfector object)
          Returns the result of interpretting the object as an instance of 'SI Infector'.
 T caseSILabel(SILabel object)
          Returns the result of interpretting the object as an instance of 'SI Label'.
 T caseSILabelValue(SILabelValue object)
          Returns the result of interpretting the object as an instance of 'SI Label Value'.
 T caseSIR(SIR object)
          Returns the result of interpretting the object as an instance of 'SIR'.
 T caseSIRLabel(SIRLabel object)
          Returns the result of interpretting the object as an instance of 'SIR Label'.
 T caseSIRLabelValue(SIRLabelValue object)
          Returns the result of interpretting the object as an instance of 'SIR Label Value'.
 T caseStandardDiseaseModel(StandardDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Disease Model'.
 T caseStandardDiseaseModelLabel(StandardDiseaseModelLabel object)
          Returns the result of interpretting the object as an instance of 'Disease Model Label'.
 T caseStandardDiseaseModelLabelValue(StandardDiseaseModelLabelValue object)
          Returns the result of interpretting the object as an instance of 'Disease Model Label Value'.
 T caseStandardDiseaseModelState(StandardDiseaseModelState object)
          Returns the result of interpretting the object as an instance of 'Disease Model State'.
 T caseStandardInfector(StandardInfector object)
          Returns the result of interpretting the object as an instance of 'Infector'.
 T caseStandardStochasticDiseaseModel(StandardStochasticDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Stochastic Disease Model'.
 T caseStochasticDiseaseModel(StochasticDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Stochastic Disease Model'.
 T caseStochasticSEIRDiseaseModel(StochasticSEIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Stochastic SEIR Disease Model'.
 T caseStochasticSIDiseaseModel(StochasticSIDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Stochastic SI Disease Model'.
 T caseStochasticSIRDiseaseModel(StochasticSIRDiseaseModel object)
          Returns the result of interpretting the object as an instance of 'Stochastic SIR Disease Model'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 T doSwitch(org.eclipse.emf.ecore.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardSwitch

public StandardSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Parameters:
theEObject -
Returns:
the first non-null result returned by a caseXXX call.

caseSEIR

public T caseSEIR(SEIR object)
Returns the result of interpretting the object as an instance of 'SEIR'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SEIR'.
See Also:
doSwitch(EObject)

caseSEIRLabel

public T caseSEIRLabel(SEIRLabel object)
Returns the result of interpretting the object as an instance of 'SEIR Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SEIR Label'.
See Also:
doSwitch(EObject)

caseSEIRLabelValue

public T caseSEIRLabelValue(SEIRLabelValue object)
Returns the result of interpretting the object as an instance of 'SEIR Label 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 interpretting the object as an instance of 'SEIR Label Value'.
See Also:
doSwitch(EObject)

caseSIR

public T caseSIR(SIR object)
Returns the result of interpretting the object as an instance of 'SIR'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SIR'.
See Also:
doSwitch(EObject)

caseSIRLabel

public T caseSIRLabel(SIRLabel object)
Returns the result of interpretting the object as an instance of 'SIR Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SIR Label'.
See Also:
doSwitch(EObject)

caseSIRLabelValue

public T caseSIRLabelValue(SIRLabelValue object)
Returns the result of interpretting the object as an instance of 'SIR Label 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 interpretting the object as an instance of 'SIR Label Value'.
See Also:
doSwitch(EObject)

caseStandardDiseaseModel

public T caseStandardDiseaseModel(StandardDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model'.
See Also:
doSwitch(EObject)

caseDiseaseModel

public T caseDiseaseModel(DiseaseModel object)
Returns the result of interpretting the object as an instance of 'Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model'.
See Also:
doSwitch(EObject)

caseDiseaseModelLabel

public T caseDiseaseModelLabel(DiseaseModelLabel object)
Returns the result of interpretting the object as an instance of 'Disease Model Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model Label'.
See Also:
doSwitch(EObject)

caseStochasticSEIRDiseaseModel

public T caseStochasticSEIRDiseaseModel(StochasticSEIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Stochastic SEIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stochastic SEIR Disease Model'.
See Also:
doSwitch(EObject)

caseStandardInfector

public T caseStandardInfector(StandardInfector object)
Returns the result of interpretting the object as an instance of 'Infector'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Infector'.
See Also:
doSwitch(EObject)

caseDeterministicSEIRDiseaseModel

public T caseDeterministicSEIRDiseaseModel(DeterministicSEIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Deterministic SEIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Deterministic SEIR Disease Model'.
See Also:
doSwitch(EObject)

caseDiseaseModelLabelValue

public T caseDiseaseModelLabelValue(DiseaseModelLabelValue object)
Returns the result of interpretting the object as an instance of 'Disease Model Label 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 interpretting the object as an instance of 'Disease Model Label Value'.
See Also:
doSwitch(EObject)

caseStandardDiseaseModelLabelValue

public T caseStandardDiseaseModelLabelValue(StandardDiseaseModelLabelValue object)
Returns the result of interpretting the object as an instance of 'Disease Model Label 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 interpretting the object as an instance of 'Disease Model Label Value'.
See Also:
doSwitch(EObject)

caseStandardDiseaseModelLabel

public T caseStandardDiseaseModelLabel(StandardDiseaseModelLabel object)
Returns the result of interpretting the object as an instance of 'Disease Model Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model Label'.
See Also:
doSwitch(EObject)

caseSI

public T caseSI(SI object)
Returns the result of interpretting the object as an instance of 'SI'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SI'.
See Also:
doSwitch(EObject)

caseSILabel

public T caseSILabel(SILabel object)
Returns the result of interpretting the object as an instance of 'SI Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SI Label'.
See Also:
doSwitch(EObject)

caseSILabelValue

public T caseSILabelValue(SILabelValue object)
Returns the result of interpretting the object as an instance of 'SI Label 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 interpretting the object as an instance of 'SI Label Value'.
See Also:
doSwitch(EObject)

caseInfector

public T caseInfector(Infector object)
Returns the result of interpretting the object as an instance of 'Infector'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Infector'.
See Also:
doSwitch(EObject)

caseSIInfector

public T caseSIInfector(SIInfector object)
Returns the result of interpretting the object as an instance of 'SI Infector'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SI Infector'.
See Also:
doSwitch(EObject)

caseDeterministicSIRDiseaseModel

public T caseDeterministicSIRDiseaseModel(DeterministicSIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Deterministic SIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Deterministic SIR Disease Model'.
See Also:
doSwitch(EObject)

caseDeterministicSIDiseaseModel

public T caseDeterministicSIDiseaseModel(DeterministicSIDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Deterministic SI Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Deterministic SI Disease Model'.
See Also:
doSwitch(EObject)

caseStochasticSIRDiseaseModel

public T caseStochasticSIRDiseaseModel(StochasticSIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Stochastic SIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stochastic SIR Disease Model'.
See Also:
doSwitch(EObject)

caseStochasticSIDiseaseModel

public T caseStochasticSIDiseaseModel(StochasticSIDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Stochastic SI Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stochastic SI Disease Model'.
See Also:
doSwitch(EObject)

caseDiseaseModelState

public T caseDiseaseModelState(DiseaseModelState object)
Returns the result of interpretting the object as an instance of 'Disease Model State'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model State'.
See Also:
doSwitch(EObject)

caseSIDiseaseModelState

public T caseSIDiseaseModelState(SIDiseaseModelState object)
Returns the result of interpretting the object as an instance of 'SI Disease Model State'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'SI Disease Model State'.
See Also:
doSwitch(EObject)

caseStandardDiseaseModelState

public T caseStandardDiseaseModelState(StandardDiseaseModelState object)
Returns the result of interpretting the object as an instance of 'Disease Model State'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Disease Model State'.
See Also:
doSwitch(EObject)

caseSanityChecker

public T caseSanityChecker(SanityChecker object)
Returns the result of interpretting the object as an instance of 'Sanity Checker'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Sanity Checker'.
See Also:
doSwitch(EObject)

caseAggregatingSIDiseaseModel

public T caseAggregatingSIDiseaseModel(AggregatingSIDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Aggregating SI Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Aggregating SI Disease Model'.
See Also:
doSwitch(EObject)

caseAggregatingDiseaseModelState

public T caseAggregatingDiseaseModelState(AggregatingDiseaseModelState object)
Returns the result of interpretting the object as an instance of 'Aggregating Disease Model State'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Aggregating Disease Model State'.
See Also:
doSwitch(EObject)

caseAggregatingSEIRDiseaseModel

public T caseAggregatingSEIRDiseaseModel(AggregatingSEIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Aggregating SEIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Aggregating SEIR Disease Model'.
See Also:
doSwitch(EObject)

caseAggregatingSIRDiseaseModel

public T caseAggregatingSIRDiseaseModel(AggregatingSIRDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Aggregating SIR Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Aggregating SIR Disease Model'.
See Also:
doSwitch(EObject)

caseStochasticDiseaseModel

public T caseStochasticDiseaseModel(StochasticDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Stochastic Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stochastic Disease Model'.
See Also:
doSwitch(EObject)

caseStandardStochasticDiseaseModel

public T caseStandardStochasticDiseaseModel(StandardStochasticDiseaseModel object)
Returns the result of interpretting the object as an instance of 'Stochastic Disease Model'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stochastic Disease Model'.
See Also:
doSwitch(EObject)

caseIdentifiable

public T caseIdentifiable(Identifiable object)
Returns the result of interpretting the object as an instance of 'Identifiable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identifiable'.
See Also:
doSwitch(EObject)

caseDecorator

public T caseDecorator(Decorator object)
Returns the result of interpretting the object as an instance of 'Decorator'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Decorator'.
See Also:
doSwitch(EObject)

caseNodeDecorator

public T caseNodeDecorator(NodeDecorator object)
Returns the result of interpretting the object as an instance of 'Node Decorator'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Node Decorator'.
See Also:
doSwitch(EObject)

caseLabel

public T caseLabel(Label object)
Returns the result of interpretting the object as an instance of 'Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Label'.
See Also:
doSwitch(EObject)

caseDynamicLabel

public T caseDynamicLabel(DynamicLabel object)
Returns the result of interpretting the object as an instance of 'Dynamic Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Dynamic Label'.
See Also:
doSwitch(EObject)

caseNodeLabel

public T caseNodeLabel(NodeLabel object)
Returns the result of interpretting the object as an instance of 'Node Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Node Label'.
See Also:
doSwitch(EObject)

caseDynamicNodeLabel

public T caseDynamicNodeLabel(DynamicNodeLabel object)
Returns the result of interpretting the object as an instance of 'Dynamic Node Label'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Dynamic Node Label'.
See Also:
doSwitch(EObject)

caseSanityChecker_1

public T caseSanityChecker_1(SanityChecker object)
Returns the result of interpretting the object as an instance of 'Sanity Checker'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Sanity Checker'.
See Also:
doSwitch(EObject)

caseLabelValue

public T caseLabelValue(LabelValue object)
Returns the result of interpretting the object as an instance of 'Label 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 interpretting the object as an instance of 'Label Value'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)