| 
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenixst.plexus.util.DefaultEdge
public class DefaultEdge
A default Graph.Edge implementation
  in which the user-defined object must be null.  The
  equals() method is inherited from
  Object and uses reference equality.  This class
  should only be used by Graphs which create edges once
  and store them.
| Constructor Summary | |
|---|---|
DefaultEdge(Object tail,
            Object head,
            boolean directed)
Creates a new DefaultEdge. | 
|
| Method Summary | |
|---|---|
 Object | 
getHead()
Returns the node which is the head of this Graph.Edge. | 
 Object | 
getOtherEndpoint(Object node)
Returns the node which is at the other end of this Graph.Edge than the specified node. | 
 Object | 
getTail()
Returns the node which is the tail of this Graph.Edge. | 
 Object | 
getUserObject()
Returns the user object contained in this Graph.Edge. | 
 boolean | 
isDirected()
Returns whether or not this Graph.Edge is
  directed. | 
 void | 
setUserObject(Object object)
Sets the user object contained in this Graph.Edge. | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface com.phoenixst.plexus.Graph.Edge | 
|---|
equals, hashCode | 
| Constructor Detail | 
|---|
public DefaultEdge(Object tail,
                   Object head,
                   boolean directed)
DefaultEdge.
| Method Detail | 
|---|
public boolean isDirected()
Graph.EdgeGraph.Edge is
  directed.
isDirected in interface Graph.EdgeGraph.Edge is
  directed.public Object getUserObject()
Graph.EdgeGraph.Edge.
getUserObject in interface Graph.EdgeGraph.Edge.public void setUserObject(Object object)
Graph.EdgeGraph.Edge.
setUserObject in interface Graph.Edgeobject - the user object to replace the one in this
  Graph.Edge.public Object getTail()
Graph.EdgeGraph.Edge.
getTail in interface Graph.EdgeGraph.Edge.public Object getHead()
Graph.EdgeGraph.Edge.
getHead in interface Graph.EdgeGraph.Edge.public Object getOtherEndpoint(Object node)
Graph.EdgeGraph.Edge than the specified node.
getOtherEndpoint in interface Graph.Edgenode - the node which is the endpoint of this
  Graph.Edge not to return.
Graph.Edge than the specified node.public String toString()
toString in class Object
  | 
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||