org.metaabm.impl
Class SContextImpl

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.metaabm.impl.IIDImpl
                  extended by org.metaabm.impl.SNamedImpl
                      extended by org.metaabm.impl.SAttributedImpl
                          extended by org.metaabm.impl.SActableImpl
                              extended by org.metaabm.impl.SAgentImpl
                                  extended by org.metaabm.impl.SContextImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, IID, SActable, SAgent, SAttributed, SContext, SImplemented, SNamed

public class SContextImpl
extends SAgentImpl
implements SContext

An implementation of the model object ' SContext'.

Author:
Miles Parker

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
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>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList<SAgent> agents
          The cached value of the 'Agents' containment reference list.
protected  org.eclipse.emf.common.util.EList<IArtifact> library
          The cached value of the 'Library' containment reference list.
protected  org.eclipse.emf.common.util.EList<SProjection> projections
          The cached value of the 'Projections' containment reference list.
protected  org.eclipse.emf.common.util.EList<SValueLayer> valueLayers
          The cached value of the 'Value Layers' containment reference list.
 
Fields inherited from class org.metaabm.impl.SAgentImpl
children, implementation, styles
 
Fields inherited from class org.metaabm.impl.SActableImpl
rootActivity
 
Fields inherited from class org.metaabm.impl.SAttributedImpl
attributes
 
Fields inherited from class org.metaabm.impl.SNamedImpl
description, DESCRIPTION_EDEFAULT, PLURAL_LABEL_EDEFAULT, pluralLabel
 
Fields inherited from class org.metaabm.impl.IIDImpl
id, ID_EDEFAULT, label, LABEL_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected SContextImpl()
           
 
Method Summary
protected  org.eclipse.emf.common.util.TreeIterator<java.lang.Object> allAgentsTree()
           
protected  org.eclipse.emf.common.util.TreeIterator<java.lang.Object> allContextsTree()
           
 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)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 SAgent findAgent(java.lang.String id)
          Returns the agent with the supplied usage name.
 SAgent findChild(java.lang.String name)
           
 org.eclipse.emf.common.util.EList<SAgent> getAgents()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getAllAgents()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getAllContexts()
           
 java.util.List<SAgent> getAllSubAgents()
           
 org.eclipse.emf.common.util.EList<IArtifact> getLibrary()
           
 org.eclipse.emf.common.util.EList<SProjection> getProjections()
           
 java.util.Collection<SContext> getSubContexts()
           
 org.eclipse.emf.common.util.EList<SValueLayer> getValueLayers()
           
 boolean references(IValue value)
           
 
Methods inherited from class org.metaabm.impl.SAgentImpl
basicGetParent, basicSetImplementation, basicSetOwner, eBaseStructuralFeatureID, eBasicRemoveFromContainerFeature, eDerivedStructuralFeatureID, getChildren, getImplementation, getOwner, getParent, getStyles, isReachable, setImplementation, setOwner
 
Methods inherited from class org.metaabm.impl.SActableImpl
basicSetRootActivity, getRootActivity, setRootActivity
 
Methods inherited from class org.metaabm.impl.SAttributedImpl
findAttribute, getAttributes
 
Methods inherited from class org.metaabm.impl.SNamedImpl
getDescription, getPluralLabel, setDescription, setID, setPluralLabel, toString
 
Methods inherited from class org.metaabm.impl.IIDImpl
getID, getLabel, setLabel
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.metaabm.SAgent
getChildren, getOwner, getStyles, setOwner
 
Methods inherited from interface org.metaabm.SActable
getRootActivity, setRootActivity
 
Methods inherited from interface org.metaabm.SAttributed
findAttribute, getAttributes, isReachable
 
Methods inherited from interface org.metaabm.SNamed
getDescription, getPluralLabel, setDescription, setPluralLabel
 
Methods inherited from interface org.metaabm.IID
getID, getLabel, setID, setLabel
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.metaabm.SImplemented
getImplementation, getParent, setImplementation
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

agents

protected org.eclipse.emf.common.util.EList<SAgent> agents
The cached value of the 'Agents' containment reference list.

See Also:
getAgents()

projections

protected org.eclipse.emf.common.util.EList<SProjection> projections
The cached value of the 'Projections' containment reference list.

See Also:
getProjections()

valueLayers

protected org.eclipse.emf.common.util.EList<SValueLayer> valueLayers
The cached value of the 'Value Layers' containment reference list.

See Also:
getValueLayers()

library

protected org.eclipse.emf.common.util.EList<IArtifact> library
The cached value of the 'Library' containment reference list.

See Also:
getLibrary()
Constructor Detail

SContextImpl

protected SContextImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class SAgentImpl

getProjections

public org.eclipse.emf.common.util.EList<SProjection> getProjections()

Specified by:
getProjections in interface SContext
Returns:
the value of the 'Projections' containment reference list.
See Also:
MetaABMPackage.getSContext_Projections(), SProjection.getOwner()

getAgents

public org.eclipse.emf.common.util.EList<SAgent> getAgents()

Specified by:
getAgents in interface SContext
Returns:
the value of the 'Agents' containment reference list.
See Also:
MetaABMPackage.getSContext_Agents(), SAgent.getOwner()

getValueLayers

public org.eclipse.emf.common.util.EList<SValueLayer> getValueLayers()

Specified by:
getValueLayers in interface SContext
Returns:
the value of the 'Value Layers' containment reference list.
See Also:
MetaABMPackage.getSContext_ValueLayers()

getLibrary

public org.eclipse.emf.common.util.EList<IArtifact> getLibrary()

Specified by:
getLibrary in interface SContext
Returns:
the value of the 'Library' containment reference list.
See Also:
MetaABMPackage.getSContext_Library()

getSubContexts

public java.util.Collection<SContext> getSubContexts()
Specified by:
getSubContexts in interface SContext

getAllAgents

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getAllAgents()
Specified by:
getAllAgents in interface SContext

getAllSubAgents

public java.util.List<SAgent> getAllSubAgents()
Specified by:
getAllSubAgents in interface SContext

getAllContexts

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getAllContexts()
Specified by:
getAllContexts in interface SContext

allAgentsTree

protected org.eclipse.emf.common.util.TreeIterator<java.lang.Object> allAgentsTree()

allContextsTree

protected org.eclipse.emf.common.util.TreeIterator<java.lang.Object> allContextsTree()

findChild

public SAgent findChild(java.lang.String name)
Specified by:
findChild in interface SContext

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 SAgentImpl

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 SAgentImpl

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 SAgentImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class SAgentImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class SAgentImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class SAgentImpl

findAgent

public SAgent findAgent(java.lang.String id)
Returns the agent with the supplied usage name.

Specified by:
findAgent in interface SContext

references

public boolean references(IValue value)
Specified by:
references in interface SNamed
Overrides:
references in class SActableImpl