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, setUserDatum
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getIncidentElements
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
protected java.lang.ref.WeakReference m_Graph
protected int id
public ArchetypeGraph getGraph()
Element
getGraph
in interface Element
Element.getGraph()
protected void addGraph_internal(AbstractArchetypeGraph g)
g
.protected void removeGraph_internal()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
protected void initialize()
clone()
copies some information that should
not be in the new element.)