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

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
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Decorator, NodeDecorator, DiseaseModel
Direct Known Subclasses:
StandardDiseaseModelImpl, StochasticDiseaseModelImpl

public abstract class DiseaseModelImpl
extends NodeDecoratorImpl
implements DiseaseModel

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.DiseaseModel
URI_TYPE_DISEASEMODEL_SEGMENT
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
abstract  DiseaseModelLabel createDiseaseModelLabel()
           
abstract  DiseaseModelLabelValue createDiseaseModelLabelValue()
           
abstract  DiseaseModelState createDiseaseModelState()
           
abstract  Infector createInfector()
           
 void decorateGraph()
           
 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 getAdjustedBackgroundMortalityRate(long timeDelta)
           
 double getBackgroundMortalityRate()
           
 java.lang.String getDiseaseName()
           
 java.lang.String getPopulationIdentifier()
           
 long getTimePeriod()
           
abstract  void initializeDiseaseState(DiseaseModelLabel diseaseModelLabel)
          This is a second chance to update the DiseaseModelState instance that is being kept at a DiseaseModelLabel.
abstract  DiseaseModelState initializeDiseaseState(DiseaseModelState diseaseModelState, DiseaseModelLabel diseaseModelLabel)
           
 boolean sane()
           
 void setBackgroundMortalityRate(double newBackgroundMortalityRate)
           
 void setDiseaseName(java.lang.String newDiseaseName)
           
 void setPopulationIdentifier(java.lang.String newPopulationIdentifier)
           
 void setTimePeriod(long newTimePeriod)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.core.model.impl.DecoratorImpl
basicSetGraph, eBasicRemoveFromContainerFeature, eInverseAdd, eInverseRemove, getGraph, getLabelsToUpdate, resetLabels, setGraph, updateLabels
 
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.core.model.Decorator
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

getTimePeriod

public long getTimePeriod()

Specified by:
getTimePeriod in interface DiseaseModel
Returns:

setTimePeriod

public void setTimePeriod(long newTimePeriod)

Specified by:
setTimePeriod in interface DiseaseModel
Parameters:
newTimePeriod -
See Also:
DiseaseModel.getTimePeriod()

getPopulationIdentifier

public java.lang.String getPopulationIdentifier()

Specified by:
getPopulationIdentifier in interface DiseaseModel
Returns:

setPopulationIdentifier

public void setPopulationIdentifier(java.lang.String newPopulationIdentifier)

Specified by:
setPopulationIdentifier in interface DiseaseModel
Parameters:
newPopulationIdentifier -
See Also:
DiseaseModel.getPopulationIdentifier()

getBackgroundMortalityRate

public double getBackgroundMortalityRate()

Specified by:
getBackgroundMortalityRate in interface DiseaseModel
Returns:

setBackgroundMortalityRate

public void setBackgroundMortalityRate(double newBackgroundMortalityRate)

Specified by:
setBackgroundMortalityRate in interface DiseaseModel
Parameters:
newBackgroundMortalityRate -
See Also:
DiseaseModel.getBackgroundMortalityRate()

getDiseaseName

public java.lang.String getDiseaseName()

Specified by:
getDiseaseName in interface DiseaseModel
Returns:
the name of the disease

setDiseaseName

public void setDiseaseName(java.lang.String newDiseaseName)

Specified by:
setDiseaseName in interface DiseaseModel
Parameters:
newDiseaseName - the new value of the 'Disease Name' attribute.
See Also:
DiseaseModel.getDiseaseName()

getAdjustedBackgroundMortalityRate

public double getAdjustedBackgroundMortalityRate(long timeDelta)

Specified by:
getAdjustedBackgroundMortalityRate in interface DiseaseModel
Parameters:
timeDelta -
Returns:

createDiseaseModelLabel

public abstract DiseaseModelLabel createDiseaseModelLabel()

Specified by:
createDiseaseModelLabel in interface DiseaseModel
Returns:

createDiseaseModelLabelValue

public abstract DiseaseModelLabelValue createDiseaseModelLabelValue()

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

createDiseaseModelState

public abstract DiseaseModelState createDiseaseModelState()

Specified by:
createDiseaseModelState in interface DiseaseModel
Returns:

initializeDiseaseState

public abstract DiseaseModelState initializeDiseaseState(DiseaseModelState diseaseModelState,
                                                         DiseaseModelLabel diseaseModelLabel)

Specified by:
initializeDiseaseState in interface DiseaseModel
Parameters:
diseaseModelState -
diseaseModelLabel -
Returns:

initializeDiseaseState

public abstract void initializeDiseaseState(DiseaseModelLabel diseaseModelLabel)
This is a second chance to update the DiseaseModelState instance that is being kept at a DiseaseModelLabel. We get this because we've already done one pass over the lablel's that the disease model updates. In that pass we accumlated global state information (e.g., the total population) and now we might need to add something to the state information such as the global population density.

Specified by:
initializeDiseaseState in interface DiseaseModel
Parameters:
diseaseModelLabel - the label to use to initialize the state information

createInfector

public abstract Infector createInfector()

Specified by:
createInfector in interface DiseaseModel
Returns:

decorateGraph

public void decorateGraph()
Description copied from class: DecoratorImpl

Specified by:
decorateGraph in interface Decorator
Overrides:
decorateGraph in class DecoratorImpl
See Also:
org.eclipse.ohf.stem.core.model.impl.DecoratorImpl#decorateGraph(org.eclipse.ohf.stem.core.graph.Graph)

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

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