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

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
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Decorator, NodeDecorator, DiseaseModel, SI, SIR, StandardDiseaseModel
Direct Known Subclasses:
DeterministicSIRDiseaseModelImpl, SEIRImpl, StochasticSIRDiseaseModelImpl

public abstract class SIRImpl
extends SIImpl
implements SIR

An implementation of the model object 'SIR'.

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.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
 StandardDiseaseModelLabelValue 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 getAdjustedImmunityLossRate(long timeDelta)
           
 double getImmunityLossRate()
           
 boolean sane()
           
 void setImmunityLossRate(double newImmunityLossRate)
           
 java.lang.String toString()
           
 
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.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

createDiseaseModelLabel

public DiseaseModelLabel createDiseaseModelLabel()
Description copied from class: DiseaseModelImpl

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

createDiseaseModelLabelValue

public DiseaseModelLabelValue createDiseaseModelLabelValue()
Description copied from class: DiseaseModelImpl

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

computeDeaths

public StandardDiseaseModelLabelValue computeDeaths(StandardDiseaseModelLabel currentLabel,
                                                    long timeDelta)
Overrides:
computeDeaths in class SIImpl
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 SIImpl
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)

getImmunityLossRate

public double getImmunityLossRate()

Specified by:
getImmunityLossRate in interface SIR
Returns:

setImmunityLossRate

public void setImmunityLossRate(double newImmunityLossRate)

Specified by:
setImmunityLossRate in interface SIR
Parameters:
newImmunityLossRate -
See Also:
SIR.getImmunityLossRate()

getAdjustedImmunityLossRate

public double getAdjustedImmunityLossRate(long timeDelta)

Specified by:
getAdjustedImmunityLossRate in interface SIR
Parameters:
timeDelta -
Returns:

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 SIImpl
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 SIImpl
Parameters:
featureID -
newValue -

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

Overrides:
toString in class SIImpl
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 SIImpl
Returns:
true if the instance is "sane", false otherwise.
See Also:
SIImpl.sane()