|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Vertex class provides the abstraction of a vertex originating from a node. A vertex is associated with a node, its originating node. Vertices are identified by name and instance count or by rank within the originating node. Each vertex stores an instance of class Object.
Method Summary | |
void |
close()
Releases a vertex's resources and closes it immediately. |
void |
delete()
Deletes this vertex from its persistent storage. |
java.lang.Object |
get()
Returns the value of this vertex. |
int |
getIndex()
Returns the index of this vertex within its containing node. |
java.lang.String |
getName()
Returns the name of this vertex, or null if the vertex is closed. |
Node |
getNode()
Returns the node containing this vertex. |
Storage |
getStorage()
Returns the storage containing this vertex. |
int |
getUniqueID()
Returns an integer which uniquely identifies this vertex within its containing storage. |
boolean |
isClosed()
Tests to see if a vertex is closed. |
void |
set(java.lang.Object value)
Sets the value of this vertex. |
void |
setName(java.lang.String name)
Sets the name of this vertex. |
Method Detail |
public java.lang.Object get() throws E4GraphException
E4GraphException
- if the vertex is closedpublic void set(java.lang.Object value) throws E4GraphException
value
- the new value of this vertexE4GraphException
- if the vertex is closedpublic int getIndex() throws E4GraphException
E4GraphException
- if the vertex is closedpublic java.lang.String getName()
public void setName(java.lang.String name) throws E4GraphException
name
- the new name of the vertexE4GraphException
- if the vertex is closedpublic int getUniqueID()
public Storage getStorage() throws E4GraphException
E4GraphException
- if the vertex is closedpublic Node getNode() throws E4GraphException
E4GraphException
- if the vertex is closedpublic void delete() throws E4GraphException
E4GraphException
- if an error occurspublic boolean isClosed()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |