pedviz.graph
Class Edge

java.lang.Object
  extended by pedviz.graph.Edge

public class Edge
extends java.lang.Object

This class represents a connection between two nodes. The start node is the parent and the end node is the child.

Version:
0.1
Author:
Lukas Forer

Constructor Summary
Edge(Node start, Node end)
          Creates a new Edge object with the given start and end node.
 
Method Summary
 Node getEnd()
          Returns the end node
 Node getStart()
          Returns the start node.
 boolean isDummy()
          Returns true if the edge is a dummy.
 void setDummy(boolean dummy)
          True, if the edge is a dummy.
 void setEnd(Node end)
          Sets the end node.
 void setStart(Node start)
          Sets the start node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Node start,
            Node end)
Creates a new Edge object with the given start and end node.

Parameters:
start -
end -
Method Detail

getEnd

public Node getEnd()
Returns the end node

Returns:
end node (child)

setEnd

public void setEnd(Node end)
Sets the end node.

Parameters:
end - end node (child) Sets the end node.

getStart

public Node getStart()
Returns the start node.

Returns:
start node (parent)

setStart

public void setStart(Node start)
Sets the start node.

Parameters:
start - node (parent) Sets the start node.

isDummy

public boolean isDummy()
Returns true if the edge is a dummy.

Returns:
true if the edge is a dummy.

setDummy

public void setDummy(boolean dummy)
True, if the edge is a dummy.

Parameters:
dummy - True, if the edge is a dummy.

toString

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