|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.graph.Edge
public class Edge
This class represents a connection between two nodes. The start node is the parent and the end node is the child.
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 |
---|
public Edge(Node start, Node end)
start
- end
- Method Detail |
---|
public Node getEnd()
public void setEnd(Node end)
end
- end node (child) Sets the end node.public Node getStart()
public void setStart(Node start)
start
- node (parent) Sets the start node.public boolean isDummy()
public void setDummy(boolean dummy)
dummy
- True, if the edge is a dummy.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |