|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.util.graph.Edge
This class represents an edge in a graph that can wrap arbitrary objects
| Constructor Summary | |
Edge()
Constructs an Edge object without anything contained |
|
Edge(Object contents)
Constructs an Edge object and stores the contents inside |
|
| Method Summary | |
boolean |
equals(Object o)
Two edges are equal if their endpoints are equal |
Object |
getContents()
Gets the object stored on this edge |
Node |
getFromNode()
Gets the source node for this edge |
Node |
getToNode()
Gets the destination node for this edge |
int |
hashCode()
|
void |
setContents(Object Contents)
Sets the object contained by this edge |
void |
setNodes(Node From,
Node To)
Sets the from and to nodes for this edge |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Edge()
Edge object without anything contained
public Edge(Object contents)
Edge object and stores the contents inside
contents - the object to be stored "into" the edge| Method Detail |
public void setContents(Object Contents)
Contents - The object to be storedpublic Object getContents()
public void setNodes(Node From,
Node To)
From - The node this edge starts fromTo - The node this edge goes topublic Node getFromNode()
public Node getToNode()
public int hashCode()
public boolean equals(Object o)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||