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

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

public class AggregatingSIDiseaseModelImpl
extends SIImpl
implements AggregatingSIDiseaseModel

An implementation of the model object 'Aggregating SI Disease Model'.


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.AggregatingSIDiseaseModel
URI_TYPE_AGGREGATING_SI_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
 DiseaseModelState createDiseaseModelState()
           
 void decorateGraph()
           
static java.util.List<Node> getChildNodes(Node node)
           
static Node getParentNode(Node node)
           
 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()
           
 java.lang.String toString()
           
 void updateLabels(STEMTime time, long timeDelta)
           
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.SIImpl
computeAdditionalInfectious, computeDeaths, computeTransitions, createDiseaseModelLabel, createDiseaseModelLabelValue, createInfector, eGet, eIsSet, eSet, eUnset, 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, setTotalArea, setTotalPopulationCount
 
Methods inherited from class org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelImpl
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
createDiseaseModelLabel, createDiseaseModelLabelValue, createInfector, getAdjustedBackgroundMortalityRate, getBackgroundMortalityRate, getDiseaseName, getPopulationIdentifier, getTimePeriod, setBackgroundMortalityRate, setDiseaseName, setPopulationIdentifier, setTimePeriod
 
Methods inherited from interface org.eclipse.ohf.stem.core.model.Decorator
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

decorateGraph

public void decorateGraph()
Description copied from class: DecoratorImpl

Specified by:
decorateGraph in interface Decorator
Overrides:
decorateGraph in class DiseaseModelImpl
See Also:
DiseaseModelImpl.decorateGraph()

getParentNode

public static Node getParentNode(Node node)
Parameters:
node -
Returns:
the Node that contains this one, or null if there is no parent

getChildNodes

public static java.util.List<Node> getChildNodes(Node node)
Parameters:
node -
Returns:
the Nodes that are children of the parameter node

updateLabels

public void updateLabels(STEMTime time,
                         long timeDelta)
Description copied from class: DecoratorImpl

Specified by:
updateLabels in interface Decorator
Overrides:
updateLabels in class StandardDiseaseModelImpl
Parameters:
time - the time to be used when determining the changes to be made to the Graph
See Also:
StandardDiseaseModelImpl.updateLabels(org.eclipse.ohf.stem.core.model.STEMTime, long)

createDiseaseModelState

public DiseaseModelState createDiseaseModelState()
Description copied from class: DiseaseModelImpl

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

initializeDiseaseState

public void initializeDiseaseState(DiseaseModelLabel diseaseModelLabel)
Description copied from class: StandardDiseaseModelImpl
Here we compute and set the ratio between the total area and the area used for this DiseaseModelLabel. This value is used to determine the transmission scale factor.

Specified by:
initializeDiseaseState in interface DiseaseModel
Overrides:
initializeDiseaseState in class StandardDiseaseModelImpl
Parameters:
diseaseModelLabel - the label to use to initialize the state information
See Also:
StandardDiseaseModelImpl.initializeDiseaseState(org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelLabel)

initializeDiseaseState

public DiseaseModelState initializeDiseaseState(DiseaseModelState diseaseModelState,
                                                DiseaseModelLabel diseaseModelLabel)
Description copied from class: DiseaseModelImpl

Specified by:
initializeDiseaseState in interface DiseaseModel
Overrides:
initializeDiseaseState in class StandardDiseaseModelImpl
Parameters:
diseaseModelState - the state information to be initialized
diseaseModelLabel - the label to use to initialize the state information
Returns:
See Also:
StandardDiseaseModelImpl.initializeDiseaseState(org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelState, org.eclipse.ohf.stem.diseasemodels.standard.DiseaseModelLabel)

resetLabels

public void resetLabels()
Description copied from class: DecoratorImpl

Specified by:
resetLabels in interface Decorator
Overrides:
resetLabels in class StandardDiseaseModelImpl

toString

public java.lang.String toString()
Description copied from class: SIImpl

Overrides:
toString in class SIImpl
Returns:
See Also:
SIImpl.toString()

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()