org.eclipse.emf.henshin.interpreter.util
Class HenshinEGraph

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by java.util.LinkedHashSet<EObject>
                  extended by org.eclipse.emf.henshin.interpreter.impl.EGraphImpl
                      extended by org.eclipse.emf.henshin.interpreter.util.HenshinEGraph
All Implemented Interfaces:
Serializable, Cloneable, Iterable<EObject>, Collection<EObject>, Set<EObject>, Adapter, EGraph

public class HenshinEGraph
extends EGraphImpl
implements Adapter

Graph-to-EGraph converter.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
protected  Graph henshinGraph
           
protected  Map<Node,EObject> node2object
           
protected  Map<EObject,Node> object2node
           
 
Fields inherited from class org.eclipse.emf.henshin.interpreter.impl.EGraphImpl
crossReferenceAdapter, domainMap, inheritanceMap, packages
 
Constructor Summary
HenshinEGraph(Graph graph)
          Default constructor.
 
Method Summary
protected  Attribute createAttribute()
           
protected  Edge createEdge()
           
protected  Node createNode()
           
 void didAdd(EObject eObject)
          Notify that an object has been added to the graph.
 void didRemove(EObject object)
          Notify that an object has been removed from the graph.
 Map<Node,EObject> getNode2ObjectMap()
           
 Map<EObject,Node> getObject2NodeMap()
           
 Notifier getTarget()
           
 boolean isAdapterForType(Object type)
           
 void notifyChanged(Notification notification)
           
 void setNode2ObjectMap(Map<Node,EObject> node2object)
           
 void setObject2NodeMap(Map<EObject,Node> object2node)
           
 void setTarget(Notifier newTarget)
           
 void updateEGraph()
          This methods will update the EMF representation of the Henshin-Graph.
 
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.EGraphImpl
add, addAll, addChildParentRelation, addEPackage, addGraph, addTree, clear, copy, getCrossReferenceAdapter, getDomain, getDomain, getDomainSize, getRoots, initializeContents, remove, removeAll, removeGraph, removeTree, toString
 
Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, iterator, retainAll, size, toArray, toArray
 

Field Detail

henshinGraph

protected final Graph henshinGraph

node2object

protected Map<Node,EObject> node2object

object2node

protected Map<EObject,Node> object2node
Constructor Detail

HenshinEGraph

public HenshinEGraph(Graph graph)
Default constructor.

Parameters:
graph - The Henshin graph.
Method Detail

didAdd

public void didAdd(EObject eObject)
Description copied from class: EGraphImpl
Notify that an object has been added to the graph.

Overrides:
didAdd in class EGraphImpl
Parameters:
eObject - Added object.

createAttribute

protected Attribute createAttribute()

createEdge

protected Edge createEdge()

createNode

protected Node createNode()

didRemove

public void didRemove(EObject object)
Description copied from class: EGraphImpl
Notify that an object has been removed from the graph.

Overrides:
didRemove in class EGraphImpl
Parameters:
object - Removed object.

updateEGraph

public void updateEGraph()
This methods will update the EMF representation of the Henshin-Graph.


getTarget

public Notifier getTarget()
Specified by:
getTarget in interface Adapter

isAdapterForType

public boolean isAdapterForType(Object type)
Specified by:
isAdapterForType in interface Adapter

notifyChanged

public void notifyChanged(Notification notification)
Specified by:
notifyChanged in interface Adapter

setTarget

public void setTarget(Notifier newTarget)
Specified by:
setTarget in interface Adapter

getNode2ObjectMap

public Map<Node,EObject> getNode2ObjectMap()

setNode2ObjectMap

public void setNode2ObjectMap(Map<Node,EObject> node2object)

getObject2NodeMap

public Map<EObject,Node> getObject2NodeMap()

setObject2NodeMap

public void setObject2NodeMap(Map<EObject,Node> object2node)