org.eclipse.ohf.stem.diseasemodels.standard.impl
Class SEIRImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
                  extended by org.eclipse.ohf.stem.core.model.impl.DecoratorImpl
                      extended by org.eclipse.ohf.stem.core.model.impl.NodeDecoratorImpl
                          extended by org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelImpl
                              extended by org.eclipse.ohf.stem.diseasemodels.standard.impl.StandardDiseaseModelImpl
                                  extended by org.eclipse.ohf.stem.diseasemodels.standard.impl.SIImpl
                                      extended by org.eclipse.ohf.stem.diseasemodels.standard.impl.SIRImpl
                                          extended by org.eclipse.ohf.stem.diseasemodels.standard.impl.SEIRImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Decorator, NodeDecorator, DiseaseModel, SEIR, SI, SIR, StandardDiseaseModel
Direct Known Subclasses:
DeterministicSEIRDiseaseModelImpl, StochasticSEIRDiseaseModelImpl

public abstract class SEIRImpl
extends SIRImpl
implements SEIR

An implementation of the model object 'SEIR'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.SEIR
URI_TYPE_STANDARD_SEIR_DISEASE_MODEL, URI_TYPE_STANDARD_SEIR_DISEASE_MODEL_SEGMENT
 
Fields inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.SIR
URI_TYPE_STANDARD_SIR_DISEASE_MODEL, URI_TYPE_STANDARD_SIR_DISEASE_MODEL_SEGMENT
 
Fields inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.SI
URI_TYPE_STANDARD_SI_DISEASE_MODEL_SEGMENT
 
Fields inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.StandardDiseaseModel
URI_TYPE_STANDARD_DISEASEMODEL_SEGMENT
 
Fields inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModel
URI_TYPE_DISEASEMODEL_SEGMENT
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 SEIRLabelValue computeDeaths(StandardDiseaseModelLabel currentLabel, long timeDelta)
           
 StandardDiseaseModelLabelValue computeTransitions(StandardDiseaseModelLabelValue currentState, StandardDiseaseModelLabel diseaseLabel, long timeDelta)
           
 DiseaseModelLabel createDiseaseModelLabel()
           
 DiseaseModelLabelValue createDiseaseModelLabelValue()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 double getAdjustedIncubationRate(long timeDelta)
           
 double getIncubationRate()
           
 boolean sane()
           
 void setIncubationRate(double newIncubationRate)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.SIRImpl
getAdjustedImmunityLossRate, getImmunityLossRate, setImmunityLossRate
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.SIImpl
computeAdditionalInfectious, createDiseaseModelState, createInfector, getAdjustedInfectiousMortalityRate, getAdjustedRecoveryRate, getAdjustedTransmissionRate, getInfectiousMortality, getInfectiousMortalityRate, getNonLinearityCoefficient, getPhysicallyAdjacentInfectious, getPhysicallyAdjacentInfectiousProportion, getRecoveryRate, getTransmissionRate, getTransmissionRateScaleFactor, setInfectiousMortality, setInfectiousMortalityRate, setNonLinearityCoefficient, setPhysicallyAdjacentInfectiousProportion, setRecoveryRate, setTransmissionRate
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.StandardDiseaseModelImpl
addToTotalArea, addToTotalPopulationCount, computeBirths, computeTotalPopulationCountReciprocal, getTotalArea, getTotalPopulationCount, getTotalPopulationCountReciprocal, initializeDiseaseState, initializeDiseaseState, resetLabels, setTotalArea, setTotalPopulationCount, updateLabels
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelImpl
decorateGraph, getAdjustedBackgroundMortalityRate, getBackgroundMortalityRate, getDiseaseName, getPopulationIdentifier, getTimePeriod, setBackgroundMortalityRate, setDiseaseName, setPopulationIdentifier, setTimePeriod
 
Methods inherited from class org.eclipse.ohf.stem.core.model.impl.DecoratorImpl
basicSetGraph, eBasicRemoveFromContainerFeature, eInverseAdd, eInverseRemove, getGraph, getLabelsToUpdate, setGraph
 
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
basicSetDublinCore, getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.SIR
getAdjustedImmunityLossRate, getImmunityLossRate, setImmunityLossRate
 
Methods inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.SI
getAdjustedInfectiousMortalityRate, getAdjustedRecoveryRate, getAdjustedTransmissionRate, getInfectiousMortality, getInfectiousMortalityRate, getNonLinearityCoefficient, getPhysicallyAdjacentInfectious, getPhysicallyAdjacentInfectiousProportion, getRecoveryRate, getTransmissionRate, setInfectiousMortality, setInfectiousMortalityRate, setNonLinearityCoefficient, setPhysicallyAdjacentInfectiousProportion, setRecoveryRate, setTransmissionRate
 
Methods inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.StandardDiseaseModel
addToTotalArea, addToTotalPopulationCount, computeTotalPopulationCountReciprocal, getTotalArea, getTotalPopulationCount, getTotalPopulationCountReciprocal, setTotalArea, setTotalPopulationCount
 
Methods inherited from interface org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModel
createDiseaseModelState, createInfector, getAdjustedBackgroundMortalityRate, getBackgroundMortalityRate, getDiseaseName, getPopulationIdentifier, getTimePeriod, initializeDiseaseState, initializeDiseaseState, setBackgroundMortalityRate, setDiseaseName, setPopulationIdentifier, setTimePeriod
 
Methods inherited from interface org.eclipse.ohf.stem.core.model.Decorator
decorateGraph, getGraph, getLabelsToUpdate, resetLabels, setGraph, updateLabels
 
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable
getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

computeDeaths

public SEIRLabelValue computeDeaths(StandardDiseaseModelLabel currentLabel,
                                    long timeDelta)
Overrides:
computeDeaths in class SIRImpl
Parameters:
currentLabel - the current label of the disease model
timeDelta - the time period over which the population members die
Returns:
the disease state label value that represents the number of deaths in each state.
See Also:
org.eclipse.ohf.stem.diseasemodels.standard.impl.SIImpl#computeDeaths(org.eclipse.ohf.stem.diseasemodels.standard.StandardDiseaseModelLabelValue, long)

computeTransitions

public StandardDiseaseModelLabelValue computeTransitions(StandardDiseaseModelLabelValue currentState,
                                                         StandardDiseaseModelLabel diseaseLabel,
                                                         long timeDelta)
Overrides:
computeTransitions in class SIRImpl
Parameters:
currentState - the current state of the population
diseaseLabel - the disease label for which the state transitions are being computed.
timeDelta - the time period (milliseconds) over which the population members transition to new states
Returns:
a disease state label value that contains the number of population members in each state that transition to the next state (e.g., S->E->I->R->S).
See Also:
SIImpl.computeTransitions(StandardDiseaseModelLabelValue, StandardDiseaseModelLabel, long)

createDiseaseModelLabel

public DiseaseModelLabel createDiseaseModelLabel()
Description copied from class: DiseaseModelImpl

Specified by:
createDiseaseModelLabel in interface DiseaseModel
Overrides:
createDiseaseModelLabel in class SIRImpl
Returns:
See Also:
DiseaseModelImpl.createDiseaseModelLabel()

createDiseaseModelLabelValue

public DiseaseModelLabelValue createDiseaseModelLabelValue()
Description copied from class: DiseaseModelImpl

Specified by:
createDiseaseModelLabelValue in interface DiseaseModel
Overrides:
createDiseaseModelLabelValue in class SIRImpl
Returns:
an instance of the disease model label value that this disease model updates.

getIncubationRate

public double getIncubationRate()

Specified by:
getIncubationRate in interface SEIR
Returns:

setIncubationRate

public void setIncubationRate(double newIncubationRate)

Specified by:
setIncubationRate in interface SEIR
Parameters:
newIncubationRate -
See Also:
SEIR.getIncubationRate()

getAdjustedIncubationRate

public double getAdjustedIncubationRate(long timeDelta)

Specified by:
getAdjustedIncubationRate in interface SEIR
Parameters:
timeDelta - the time period to adjust the rate to
Returns:
the adjusted rate

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class SIRImpl
Parameters:
featureID -
resolve -
coreType -
Returns:

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class SIRImpl
Parameters:
featureID -
newValue -

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class SIRImpl
Parameters:
featureID -

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class SIRImpl
Parameters:
featureID -
Returns:

toString

public java.lang.String toString()

Overrides:
toString in class SIRImpl
Returns:

sane

public boolean sane()
Description copied from class: IdentifiableImpl

Specified by:
sane in interface Identifiable
Specified by:
sane in interface SanityChecker
Overrides:
sane in class SIRImpl
Returns:
true if the instance is "sane", false otherwise.
See Also:
NodeDecoratorImpl.sane()