org.eclipse.emf.henshin.statespace.impl
Class ModelImpl

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.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.emf.henshin.statespace.impl.ModelImpl
All Implemented Interfaces:
Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, Model

public class ModelImpl
extends MinimalEObjectImpl.Container
implements Model

Default implementation of Model.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EGraph eGraph
          The cached value of the 'EGraph' attribute.
protected static EGraph EGRAPH_EDEFAULT
          The default value of the 'EGraph' attribute.
protected static int OBJECT_COUNT_EDEFAULT
          The default value of the 'Object Count' attribute.
protected static int[] OBJECT_KEYS_EDEFAULT
          The default value of the 'Object Keys' attribute.
protected  EMap<EObject,Integer> objectHashCodes
          The cached value of the 'Object Hash Codes' map.
protected  EMap<EObject,Integer> objectKeysMap
          The cached value of the 'Object Keys Map' map.
protected  Resource resource
          The cached value of the 'Resource' attribute.
protected static Resource RESOURCE_EDEFAULT
          The default value of the 'Resource' attribute.
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
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.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
ModelImpl()
           
ModelImpl(Resource resource)
          Constructor.
ModelImpl(Resource resource, EGraph eGraph)
          Constructor.
 
Method Summary
 void collectMissingRootObjects()
          Collect missing root objects from the EGraphImpl of this model.
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Model getCopy(Match match)
          Get a copy of this model.
 EGraph getEGraph()
          Get the associated EGraph instance for this model.
 int getObjectCount()
          Get the number of objects in this model.
 EMap<EObject,Integer> getObjectHashCodes()
          Get the object hash codes of this state model
 int[] getObjectKeys()
          Get the object keys of this state model as an integer array.
 EMap<EObject,Integer> getObjectKeysMap()
          Get the object keys map for this state model.
 Resource getResource()
          Get the resource that contains the actual model elements.
 void setObjectKeys(int[] objectKeys)
          Set the object keys of this state model as an integer array.
 String toString()
           
 boolean updateObjectKeys(EList<EClass> identityTypes)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, 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
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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, 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.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

RESOURCE_EDEFAULT

protected static final Resource RESOURCE_EDEFAULT
The default value of the 'Resource' attribute.

See Also:
getResource()

resource

protected Resource resource
The cached value of the 'Resource' attribute.

See Also:
getResource()

EGRAPH_EDEFAULT

protected static final EGraph EGRAPH_EDEFAULT
The default value of the 'EGraph' attribute.

See Also:
getEGraph()

eGraph

protected EGraph eGraph
The cached value of the 'EGraph' attribute.

See Also:
getEGraph()

objectHashCodes

protected EMap<EObject,Integer> objectHashCodes
The cached value of the 'Object Hash Codes' map.

See Also:
getObjectHashCodes()

objectKeysMap

protected EMap<EObject,Integer> objectKeysMap
The cached value of the 'Object Keys Map' map.

See Also:
getObjectKeysMap()

OBJECT_KEYS_EDEFAULT

protected static final int[] OBJECT_KEYS_EDEFAULT
The default value of the 'Object Keys' attribute.

See Also:
getObjectKeys()

OBJECT_COUNT_EDEFAULT

protected static final int OBJECT_COUNT_EDEFAULT
The default value of the 'Object Count' attribute.

See Also:
getObjectCount(), Constant Field Values
Constructor Detail

ModelImpl

public ModelImpl(Resource resource)
Constructor.

Parameters:
resource - Resource for this model.

ModelImpl

public ModelImpl(Resource resource,
                 EGraph eGraph)
Constructor.

Parameters:
resource - Resource for this model.
emfGraph - EmfGraph for this model.

ModelImpl

public ModelImpl()

Method Detail

getEGraph

public EGraph getEGraph()
Description copied from interface: Model
Get the associated EGraph instance for this model.

Specified by:
getEGraph in interface Model
Returns:
the value of the 'EGraph' attribute.
See Also:
org.eclipse.emf.henshin.statespace.StateSpacePackage#getModel_EmfGraph()

getObjectHashCodes

public EMap<EObject,Integer> getObjectHashCodes()
Description copied from interface: Model
Get the object hash codes of this state model

Specified by:
getObjectHashCodes in interface Model
Returns:
the value of the 'Object Hash Codes' map.
See Also:
StateSpacePackage.getModel_ObjectHashCodes()

getObjectKeysMap

public EMap<EObject,Integer> getObjectKeysMap()
Description copied from interface: Model
Get the object keys map for this state model.

Specified by:
getObjectKeysMap in interface Model
Returns:
the value of the 'Object Keys' map.

getCopy

public Model getCopy(Match match)
Get a copy of this model.

Specified by:
getCopy in interface Model

updateObjectKeys

public boolean updateObjectKeys(EList<EClass> identityTypes)
Description copied from interface: Model

Specified by:
updateObjectKeys in interface Model

collectMissingRootObjects

public void collectMissingRootObjects()
Description copied from interface: Model
Collect missing root objects from the EGraphImpl of this model. New root objects will be added to this objects resource.

Specified by:
collectMissingRootObjects in interface Model

getObjectKeys

public int[] getObjectKeys()
Description copied from interface: Model
Get the object keys of this state model as an integer array. This is derived from Model.getObjectKeysMap().

Specified by:
getObjectKeys in interface Model
Returns:
the value of the 'Object Keys' attribute.

setObjectKeys

public void setObjectKeys(int[] objectKeys)
Description copied from interface: Model
Set the object keys of this state model as an integer array. This forwards to Model.getObjectKeysMap().

Specified by:
setObjectKeys in interface Model
See Also:
Model.getObjectKeys()

getObjectCount

public int getObjectCount()
Description copied from interface: Model
Get the number of objects in this model. This is derived from #getEmfGraph().

Specified by:
getObjectCount in interface Model
Returns:
the value of the 'Object Count' attribute.
See Also:
StateSpacePackage.getModel_ObjectCount()

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class BasicEObjectImpl

getResource

public Resource getResource()
Description copied from interface: Model
Get the resource that contains the actual model elements.

Specified by:
getResource in interface Model
Returns:
the value of the 'Resource' attribute.
See Also:
#setResource(Resource), StateSpacePackage.getModel_Resource()

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)
Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)
Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class BasicEObjectImpl

eUnset

public void eUnset(int featureID)
Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)
Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class BasicEObjectImpl

toString

public String toString()
Overrides:
toString in class BasicEObjectImpl