org.eclipse.ohf.stem.definitions.labels.impl
Class PopulationLabelImpl

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.graph.impl.LabelImpl
                      extended by org.eclipse.ohf.stem.core.graph.impl.NodeLabelImpl
                          extended by org.eclipse.ohf.stem.core.graph.impl.StaticNodeLabelImpl
                              extended by org.eclipse.ohf.stem.definitions.labels.impl.PopulationLabelImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Label, NodeLabel, StaticNodeLabel, PopulationLabel

public class PopulationLabelImpl
extends StaticNodeLabelImpl
implements PopulationLabel

An implementation of the model object 'Population Label'.

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
static java.lang.String copyright
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.ohf.stem.definitions.labels.PopulationLabel
BIRD, BIRD_CHICKEN, BIRD_DUCK, HUMAN, HUMAN_FEMALE_ADULT, HUMAN_FEMALE_CHILD, HUMAN_MALE, HUMAN_MALE_ADULT, HUMAN_MALE_CHILD, MOSQUITO, MOSQUITO_ANOPHELES, SWINE, URI_TYPE_POPULATION_LABEL, URI_TYPE_POPULATION_LABEL_SEGMENT
 
Fields inherited from interface org.eclipse.ohf.stem.core.graph.Label
URI_TYPE_LABEL, URI_TYPE_LABEL_SEGMENT
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
static org.eclipse.emf.common.util.URI createPopulationLabelURI(int adminLevel, java.lang.String countryCode, java.lang.String populationIdentifier, java.lang.String nodeCode)
           
 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)
           
 PopulationLabelValue getCurrentPopulationValue()
           
 java.lang.String getName()
           
 double getPopulatedArea()
           
 java.lang.String getPopulationIdentifier()
           
static PopulationLabel getPopulationLabel(java.lang.String populationIdentifier, Node node)
           
 void setName(java.lang.String newName)
           
 void setPopulatedArea(double newPopulatedArea)
           
 void setPopulationIdentifier(java.lang.String newPopulationIdentifier)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.StaticNodeLabelImpl
getIdentifiable, sane, setIdentifiable
 
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.NodeLabelImpl
basicGetNode, basicSetNode, eInverseAdd, eInverseRemove, getNode, setNode
 
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.LabelImpl
basicGetIdentifiable, basicSetCurrentValue, getCurrentValue, getURIOfIdentifiableToBeLabeled, setCurrentValue, setURIOfIdentifiableToBeLabeled
 
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, eBasicRemoveFromContainerFeature, 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.graph.NodeLabel
getNode, setNode
 
Methods inherited from interface org.eclipse.ohf.stem.core.graph.Label
getCurrentValue, getIdentifiable, getURIOfIdentifiableToBeLabeled, setCurrentValue, setIdentifiable, setURIOfIdentifiableToBeLabeled
 
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
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

createPopulationLabelURI

public static org.eclipse.emf.common.util.URI createPopulationLabelURI(int adminLevel,
                                                                       java.lang.String countryCode,
                                                                       java.lang.String populationIdentifier,
                                                                       java.lang.String nodeCode)
Parameters:
adminLevel -
countryCode -
populationIdentifier -
nodeCode -
Returns:
the URI for a specific population label for a geographic region

getPopulationLabel

public static PopulationLabel getPopulationLabel(java.lang.String populationIdentifier,
                                                 Node node)
Parameters:
populationIdentifier - the identifier of the population
node - the node with the label
Returns:
the population label for the population on the node, or null if there isn't one.

getPopulationIdentifier

public java.lang.String getPopulationIdentifier()

Specified by:
getPopulationIdentifier in interface PopulationLabel
Returns:

setPopulationIdentifier

public void setPopulationIdentifier(java.lang.String newPopulationIdentifier)

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

getName

public java.lang.String getName()

Specified by:
getName in interface PopulationLabel
Returns:

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface PopulationLabel
Parameters:
newName -
See Also:
PopulationLabel.getName()

getCurrentPopulationValue

public PopulationLabelValue getCurrentPopulationValue()

Specified by:
getCurrentPopulationValue in interface PopulationLabel
Returns:

getPopulatedArea

public double getPopulatedArea()

Specified by:
getPopulatedArea in interface PopulationLabel
Returns:
the actual area that is populated (square kilometers).

setPopulatedArea

public void setPopulatedArea(double newPopulatedArea)

Specified by:
setPopulatedArea in interface PopulationLabel
Parameters:
newPopulatedArea - the new value of the 'Populated Area' attribute.
See Also:
PopulationLabel.getPopulatedArea()

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

Overrides:
toString in class LabelImpl
Returns: