org.eclipse.ohf.stem.diseasemodels.standard.impl
Class DiseaseModelLabelImpl
java.lang.Object
org.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.graph.impl.LabelImpl
org.eclipse.ohf.stem.core.graph.impl.DynamicLabelImpl
org.eclipse.ohf.stem.core.graph.impl.DynamicNodeLabelImpl
org.eclipse.ohf.stem.diseasemodels.standard.impl.DiseaseModelLabelImpl
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, DynamicLabel, DynamicNodeLabel, Label, NodeLabel, DiseaseModelLabel
- Direct Known Subclasses:
- StandardDiseaseModelLabelImpl
public abstract class DiseaseModelLabelImpl
- extends DynamicNodeLabelImpl
- implements DiseaseModelLabel
An implementation of the model object 'Disease Model Label'.
The following features are implemented:
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 |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
ELAST_EOBJECT_FLAG |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
Method Summary |
PopulationLabel |
basicGetPopulationLabel()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetDiseaseModelState(DiseaseModelState newDiseaseModelState,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
void |
eUnset(int featureID)
|
double |
getBirths()
|
DiseaseModelLabelValue |
getCurrentDiseaseModelLabelValue()
|
double |
getDeaths()
|
double |
getDiseaseDeaths()
|
DiseaseModelState |
getDiseaseModelState()
|
double |
getNextBirths()
|
double |
getNextDeaths()
|
double |
getNextDiseaseDeaths()
|
DiseaseModelLabelValue |
getNextDiseaseModelLabelValue()
|
PopulationLabel |
getPopulationLabel()
|
static void |
labelNode(DiseaseModelLabel dml,
PopulationLabel populationLabel,
Node node)
Label the node with the disease model label |
boolean |
sane()
|
void |
setBirths(double b)
|
void |
setDeaths(double d)
|
void |
setDiseaseDeaths(double d)
|
void |
setDiseaseModelState(DiseaseModelState newDiseaseModelState)
|
void |
setNextBirths(double b)
|
void |
setNextDeaths(double d)
|
void |
setNextDiseaseDeaths(double d)
|
void |
setPopulationLabel(PopulationLabel newPopulationLabel)
|
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.DynamicLabelImpl |
basicGetDecorator, basicSetDecorator, basicSetNextValue, getDecorator, getNextValue, isNextValueValid, reset, setDecorator, setNextValue, setNextValueValid, switchToNextValue |
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, eBasicRemoveFromContainerFeature, 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.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.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 |
getBirths
public double getBirths()
- Specified by:
getBirths
in interface DiseaseModelLabel
- Returns:
setBirths
public void setBirths(double b)
- Specified by:
setBirths
in interface DiseaseModelLabel
- Parameters:
b
- the number of births
getDeaths
public double getDeaths()
- Specified by:
getDeaths
in interface DiseaseModelLabel
- Returns:
- the value of the number of population members who have died.
setDeaths
public void setDeaths(double d)
- Specified by:
setDeaths
in interface DiseaseModelLabel
- Parameters:
d
- the number of deaths
getDiseaseDeaths
public double getDiseaseDeaths()
- Specified by:
getDiseaseDeaths
in interface DiseaseModelLabel
- Returns:
- the value of the number of population members who have died from
the disease.
setDiseaseDeaths
public void setDiseaseDeaths(double d)
- Specified by:
setDiseaseDeaths
in interface DiseaseModelLabel
- Parameters:
d
- the number of deaths
getNextBirths
public double getNextBirths()
- Specified by:
getNextBirths
in interface DiseaseModelLabel
- Returns:
- the next value of the number of population members born.
setNextBirths
public void setNextBirths(double b)
- Specified by:
setNextBirths
in interface DiseaseModelLabel
- Parameters:
b
- the number of births
getNextDeaths
public double getNextDeaths()
- Specified by:
getNextDeaths
in interface DiseaseModelLabel
- Returns:
- the next value of the number of population members who have died.
setNextDeaths
public void setNextDeaths(double d)
- Specified by:
setNextDeaths
in interface DiseaseModelLabel
- Parameters:
d
- the number of deaths
getNextDiseaseDeaths
public double getNextDiseaseDeaths()
- Specified by:
getNextDiseaseDeaths
in interface DiseaseModelLabel
- Returns:
- the next value of the number of population members who have died
from the disease.
setNextDiseaseDeaths
public void setNextDiseaseDeaths(double d)
- Specified by:
setNextDiseaseDeaths
in interface DiseaseModelLabel
- Parameters:
d
- the number of deaths
getPopulationLabel
public PopulationLabel getPopulationLabel()
-
- Specified by:
getPopulationLabel
in interface DiseaseModelLabel
- Returns:
basicGetPopulationLabel
public PopulationLabel basicGetPopulationLabel()
-
- Returns:
setPopulationLabel
public void setPopulationLabel(PopulationLabel newPopulationLabel)
-
- Specified by:
setPopulationLabel
in interface DiseaseModelLabel
- Parameters:
newPopulationLabel
- - See Also:
DiseaseModelLabel.getPopulationLabel()
getDiseaseModelState
public DiseaseModelState getDiseaseModelState()
-
- Specified by:
getDiseaseModelState
in interface DiseaseModelLabel
- Returns:
basicSetDiseaseModelState
public org.eclipse.emf.common.notify.NotificationChain basicSetDiseaseModelState(DiseaseModelState newDiseaseModelState,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Parameters:
newDiseaseModelState
- msgs
-
- Returns:
setDiseaseModelState
public void setDiseaseModelState(DiseaseModelState newDiseaseModelState)
-
- Specified by:
setDiseaseModelState
in interface DiseaseModelLabel
- Parameters:
newDiseaseModelState
- - See Also:
DiseaseModelLabel.getDiseaseModelState()
getCurrentDiseaseModelLabelValue
public DiseaseModelLabelValue getCurrentDiseaseModelLabelValue()
-
- Specified by:
getCurrentDiseaseModelLabelValue
in interface DiseaseModelLabel
- Returns:
- the current SI label value
getNextDiseaseModelLabelValue
public DiseaseModelLabelValue getNextDiseaseModelLabelValue()
-
- Specified by:
getNextDiseaseModelLabelValue
in interface DiseaseModelLabel
- Returns:
- the next SI label value
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Overrides:
eInverseAdd
in class DynamicNodeLabelImpl
- Parameters:
otherEnd
- featureID
- msgs
-
- Returns:
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class DynamicNodeLabelImpl
- Parameters:
otherEnd
- featureID
- msgs
-
- Returns:
labelNode
public static void labelNode(DiseaseModelLabel dml,
PopulationLabel populationLabel,
Node node)
- Label the node with the disease model label
- Parameters:
dml
- the disease model labelpopulationLabel
- the population affected by the diseasenode
- the node that has the population being affected by the disease
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 DynamicNodeLabelImpl
- 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 DynamicNodeLabelImpl
- Parameters:
featureID
- newValue
-
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in class DynamicNodeLabelImpl
- Parameters:
featureID
-
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in class DynamicNodeLabelImpl
- Parameters:
featureID
-
- 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 DynamicNodeLabelImpl
- Returns:
- true if the instance is "sane", false otherwise.
- See Also:
DynamicNodeLabelImpl.sane()