|
||||||||||
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
org.eclipse.ohf.stem.diseasemodels.standard.impl.SIImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.SIRImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.SEIRImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.StochasticSEIRDiseaseModelImpl
public class StochasticSEIRDiseaseModelImpl
An implementation of the model object 'Stochastic SEIR 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.StochasticSEIRDiseaseModel |
---|
URI_TYPE_STOCHASTIC_SEIR_DISEASE_MODEL_SEGMENT |
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 |
Constructor Summary | |
---|---|
StochasticSEIRDiseaseModelImpl()
The constructor needs to be public so that the new disease wizard can create an instance of the class without using the factory. |
Method Summary | |
---|---|
double |
computeNoise()
By default this calls the static method StandardStochasticDiseaseModelImpl.computeNoise(gain, rand) |
static StochasticSEIRDiseaseModel |
createStochasticSEIRDiseaseModel(java.lang.String diseaseModelName,
double backgroundMortalityRate,
double infectiousMortality,
double infectiousMortalityRate,
double transmissionRate,
double recoveryRate,
double immunityLossRate,
double incubationRate,
double nonLinearityCoefficient,
long timePeriod,
java.lang.String populationIdentifier,
double gain)
|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass)
|
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass)
|
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 |
getGain()
|
java.util.Random |
getRandomGenerator()
|
long |
getSeed()
|
void |
setGain(double newGain)
|
void |
setSeed(long newSeed)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.SEIRImpl |
---|
computeDeaths, computeTransitions, createDiseaseModelLabel, createDiseaseModelLabelValue, getAdjustedIncubationRate, getIncubationRate, sane, setIncubationRate |
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.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, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, 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.SEIR |
---|
getAdjustedIncubationRate, getIncubationRate, setIncubationRate |
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 |
---|
createDiseaseModelLabel, createDiseaseModelLabelValue, 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, sane, 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 |
Constructor Detail |
---|
public StochasticSEIRDiseaseModelImpl()
Method Detail |
---|
public static final StochasticSEIRDiseaseModel createStochasticSEIRDiseaseModel(java.lang.String diseaseModelName, double backgroundMortalityRate, double infectiousMortality, double infectiousMortalityRate, double transmissionRate, double recoveryRate, double immunityLossRate, double incubationRate, double nonLinearityCoefficient, long timePeriod, java.lang.String populationIdentifier, double gain)
diseaseModelName
- the name of the disease modelbackgroundMortalityRate
- infectiousMortality
- transmissionRate
- recoveryRate
- immunityLossRate
- incubationRate
- nonLinearityCoefficient
- timePeriod
- the time period for the rates (milliseconds)populationIdentifier
- the identifier of the population affected by the diseasegain
- TODO
public long getSeed()
getSeed
in interface StochasticDiseaseModel
public void setSeed(long newSeed)
setSeed
in interface StochasticDiseaseModel
newSeed
- the new value of the 'Seed' attribute.StochasticDiseaseModel.getSeed()
public java.util.Random getRandomGenerator()
getRandomGenerator
in interface StochasticDiseaseModel
public double getGain()
getGain
in interface StandardStochasticDiseaseModel
public void setGain(double newGain)
setGain
in interface StandardStochasticDiseaseModel
newGain
- the new value of the 'Gain' attribute.StandardStochasticDiseaseModel.getGain()
public double computeNoise()
computeNoise
in interface StandardStochasticDiseaseModel
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class SEIRImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class SEIRImpl
newValue
- public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class SEIRImpl
featureID
- public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class SEIRImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
eBaseStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eDerivedStructuralFeatureID
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.String toString()
toString
in class SEIRImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |