|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.graphs.Edge
A single directed Edge in a graph.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Nov 04 1997, JH Created class - GUIRLib-v1.0-1.1.0, Feb 24 2000, JH Updated for JDK1.3RC1 to use the Collections - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Fields inherited from interface edu.berkeley.guir.lib.graphs.GraphConst |
DEFAULT_NUMBER_EDGES, DEFAULT_NUMBER_NODES, DEFAULT_PATH_SIZE, DEFAULT_WEIGHT, ERROR, TRUE |
Constructor Summary | |
Edge(Node nodeSrc,
Node nodeDst)
Constructor to create an Edge from a Node to another Node with a weight of GraphConst.DEFAULT_WEIGHT. |
|
Edge(Node nodeSrc,
Node nodeDst,
float weight)
Constructor to create an Edge from a Node to another Node with the specified weight. |
|
Edge(String strNodeSrc,
String strNodeDst)
Constructor to create an Edge from a Node to another Node with a weight of GraphConst.DEFAULT_WEIGHT. |
|
Edge(String strNodeSrc,
String strNodeDst,
float weight)
Constructor to create an Edge from a Node to another Node with the specified weight. |
Method Summary | |
boolean |
equals(Object o)
This method checks if a given object is the "same" as this one. |
Node |
getDestNode()
Get the destination Node of the Edge. |
Node |
getSourceNode()
Get the source Node of the Edge. |
float |
getWeight()
|
int |
hashCode()
Get a hashcode for this Edge. |
String |
toString()
Returns the name of the Edge. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Edge(String strNodeSrc, String strNodeDst)
strNodeSrc
- is the name of the source Node.strNodeDst
- is the name of the destination Node.GraphConst
public Edge(String strNodeSrc, String strNodeDst, float weight)
strNodeSrc
- is the name of the source Node.strNodeDst
- is the name of the destination Node.weight
- is the weight of the Edge.public Edge(Node nodeSrc, Node nodeDst)
nodeSrc
- is the source Node.nodeDst
- is the destination Node.GraphConst
public Edge(Node nodeSrc, Node nodeDst, float weight)
nodeSrc
- is the source Node.nodeDst
- is the destination Node.weight
- is the weight of the Edge.Method Detail |
public Node getSourceNode()
public Node getDestNode()
public float getWeight()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
obj
- is the Object to check for equality.
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |