|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
org.eclipse.ohf.stem.core.model.impl.DecoratorImpl
org.eclipse.ohf.stem.core.model.impl.NodeDecoratorImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.StandardDiseaseModelImpl
public abstract class StandardDiseaseModelImpl
An implementation of the model object 'Disease Model'.
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.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 | |
---|---|
void |
addToTotalArea(double area)
|
void |
addToTotalPopulationCount(double populationCount)
|
double |
computeBirths(StandardDiseaseModelLabel currentLabel,
long timeDelta)
Compute the number of new population members that are born. |
abstract StandardDiseaseModelLabelValue |
computeDeaths(StandardDiseaseModelLabel currentLabel,
long timeDelta)
|
double |
computeTotalPopulationCountReciprocal()
|
abstract StandardDiseaseModelLabelValue |
computeTransitions(StandardDiseaseModelLabelValue currentState,
StandardDiseaseModelLabel diseaseLabel,
long timeDelta)
|
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 |
getTotalArea()
|
double |
getTotalPopulationCount()
|
double |
getTotalPopulationCountReciprocal()
|
void |
initializeDiseaseState(DiseaseModelLabel diseaseModelLabel)
Here we compute and set the ratio between the total area and the area used for this DiseaseModelLabel . |
DiseaseModelState |
initializeDiseaseState(DiseaseModelState diseaseModelState,
DiseaseModelLabel diseaseModelLabel)
|
void |
resetLabels()
|
boolean |
sane()
|
void |
setTotalArea(double newTotalArea)
|
void |
setTotalPopulationCount(double newTotalPopulationCount)
|
java.lang.String |
toString()
|
void |
updateLabels(STEMTime time,
long timeDelta)
|
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelImpl |
---|
createDiseaseModelLabel, createDiseaseModelLabelValue, createDiseaseModelState, createInfector, 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.DiseaseModel |
---|
createDiseaseModelLabel, createDiseaseModelLabelValue, createDiseaseModelState, createInfector, getAdjustedBackgroundMortalityRate, getBackgroundMortalityRate, getDiseaseName, getPopulationIdentifier, getTimePeriod, setBackgroundMortalityRate, setDiseaseName, setPopulationIdentifier, setTimePeriod |
Methods inherited from interface org.eclipse.ohf.stem.core.model.Decorator |
---|
decorateGraph, getGraph, getLabelsToUpdate, setGraph |
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 |
---|
public double getTotalPopulationCount()
getTotalPopulationCount
in interface StandardDiseaseModel
StandardDiseaseModel.setTotalPopulationCount(double)
,
StandardDiseaseModel.addToTotalPopulationCount(double)
public void setTotalPopulationCount(double newTotalPopulationCount)
setTotalPopulationCount
in interface StandardDiseaseModel
newTotalPopulationCount
- the new value of the 'Total Population Count' attribute.StandardDiseaseModel.getTotalPopulationCount()
public double getTotalPopulationCountReciprocal()
getTotalPopulationCountReciprocal
in interface StandardDiseaseModel
#computeTotalPopulationReciprocal()
public double getTotalArea()
getTotalArea
in interface StandardDiseaseModel
StandardDiseseModel
StandardDiseaseModel.addToTotalArea(double)
,
StandardDiseaseModel.setTotalArea(double)
public void setTotalArea(double newTotalArea)
setTotalArea
in interface StandardDiseaseModel
newTotalArea
- the new value of the 'Total Area' attribute.StandardDiseaseModel.getTotalArea()
public void addToTotalPopulationCount(double populationCount)
addToTotalPopulationCount
in interface StandardDiseaseModel
populationCount
- the number of population members to add to the totalStandardDiseaseModel.getTotalPopulationCount()
,
StandardDiseaseModel.setTotalPopulationCount(double)
public double computeTotalPopulationCountReciprocal()
computeTotalPopulationCountReciprocal
in interface StandardDiseaseModel
StandardDiseaseModel.getTotalPopulationCountReciprocal()
public void addToTotalArea(double area)
addToTotalArea
in interface StandardDiseaseModel
area
- the area to add (km^2)StandardDiseaseModel.getTotalArea()
,
StandardDiseaseModel.setTotalArea(double)
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class DiseaseModelImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class DiseaseModelImpl
newValue
- public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class DiseaseModelImpl
featureID
- public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class DiseaseModelImpl
public void updateLabels(STEMTime time, long timeDelta)
DecoratorImpl
updateLabels
in interface Decorator
updateLabels
in class DecoratorImpl
time
- the time to be used when determining the changes to be made to
the Graphorg.eclipse.ohf.stem.core.model.impl.DecoratorImpl#updateLabels(org.eclipse.ohf.stem.core.graph.Graph,
org.eclipse.ohf.stem.core.model.STEMTime)
public double computeBirths(StandardDiseaseModelLabel currentLabel, long timeDelta)
currentLabel
- the current disease model labeltimeDelta
- the time period (milliseconds) over which the population
members are born
public DiseaseModelState initializeDiseaseState(DiseaseModelState diseaseModelState, DiseaseModelLabel diseaseModelLabel)
DiseaseModelImpl
initializeDiseaseState
in interface DiseaseModel
initializeDiseaseState
in class DiseaseModelImpl
diseaseModelState
- the state information to be initializeddiseaseModelLabel
- the label to use to initialize the state information
DiseaseModelImpl.initializeDiseaseState(org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelState,
org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelLabel)
public void initializeDiseaseState(DiseaseModelLabel diseaseModelLabel)
DiseaseModelLabel
. This value is used to determine
the transmission scale factor.
initializeDiseaseState
in interface DiseaseModel
initializeDiseaseState
in class DiseaseModelImpl
diseaseModelLabel
- the label to use to initialize the state informationcomputeTransitions(StandardDiseaseModelLabelValue,
StandardDiseaseModelLabel, long)
,
DiseaseModelImpl.initializeDiseaseState(org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelLabel)
public abstract StandardDiseaseModelLabelValue computeTransitions(StandardDiseaseModelLabelValue currentState, StandardDiseaseModelLabel diseaseLabel, long timeDelta)
currentState
- the current state of the populationdiseaseLabel
- 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
public abstract StandardDiseaseModelLabelValue computeDeaths(StandardDiseaseModelLabel currentLabel, long timeDelta)
currentLabel
- the current label of the disease modeltimeDelta
- the time period over which the population members die
public void resetLabels()
DecoratorImpl
resetLabels
in interface Decorator
resetLabels
in class DecoratorImpl
public java.lang.String toString()
toString
in class DiseaseModelImpl
public boolean sane()
IdentifiableImpl
sane
in interface Identifiable
sane
in interface SanityChecker
sane
in class DiseaseModelImpl
DiseaseModelImpl.sane()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |