public abstract class AbstractElement extends UserDataDelegate implements Element, java.lang.Cloneable
UserDataContainer.CopyAction| Modifier and Type | Field and Description |
|---|---|
protected int |
id
Used to define vertex equivalence.
|
protected java.lang.ref.WeakReference |
m_Graph
The graph of which this vertex is an element.
|
factory, udc_delegate| Constructor and Description |
|---|
AbstractElement() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGraph_internal(AbstractArchetypeGraph g)
Attaches this vertex to the specified graph
g. |
ArchetypeGraph |
getGraph()
Returns a reference to the graph that contains this element.
|
int |
hashCode() |
protected void |
initialize()
Initializes all the data structures for this element.
|
protected void |
removeGraph_internal()
Cleans up internal data structures after this
element is removed from a graph.
|
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatumequals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIncidentElementsaddUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatumprotected java.lang.ref.WeakReference m_Graph
protected int id
public ArchetypeGraph getGraph()
ElementgetGraph in interface ElementElement.getGraph()protected void addGraph_internal(AbstractArchetypeGraph g)
g.protected void removeGraph_internal()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()protected void initialize()
clone() copies some information that should
not be in the new element.)