org.codehaus.mojo.graphing.model
Class Edge

java.lang.Object
  extended by org.codehaus.mojo.graphing.model.Edge

public class Edge
extends java.lang.Object

Edge definition.

Author:
Joakim Erdfelt

Constructor Summary
Edge(Node n1, Node n2)
           
Edge(Node n1, Node n2, int edgeType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getId()
           
 Node getNode1()
           
 Node getNode2()
           
 int getType()
           
 int hashCode()
           
 void setNode1(Node node1)
           
 void setNode2(Node node2)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Node n1,
            Node n2)
Parameters:
n1 -
n2 -

Edge

public Edge(Node n1,
            Node n2,
            int edgeType)
Parameters:
n1 -
n2 -
edgeType -
Method Detail

getNode1

public Node getNode1()
Returns:
Returns the node1.

setNode1

public void setNode1(Node node1)
Parameters:
node1 - The node1 to set.

getNode2

public Node getNode2()
Returns:
Returns the node2.

setNode2

public void setNode2(Node node2)
Parameters:
node2 - The node2 to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getId

public java.lang.String getId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2005-2010. All Rights Reserved.