public class Edge
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
compare(Edge edge)
Compares two edges to test if they contain the same nodes
|
Node |
getConnector(Node node)
Given one of the nodes contained in this edge, returns the OTHER node
|
Node |
getEndNode()
Gets the end node
|
Notation |
getNotation()
Get information about the nodes edge
|
Node |
getStartNode()
Gets the starter node
|
void |
remove()
Removes this edge/relation between two nodes
|
void |
restore()
Restores this edge/relation between two nodes
|
void |
setEndNode(Node endNode)
Sets the end node
|
void |
setNotation(Notation notation)
Sets the edge information for the node
|
void |
setStartNode(Node startNode)
Sets the started node
|
public Node getStartNode()
public void setStartNode(Node startNode)
startNode
- The node to set the starter node topublic Node getEndNode()
public void setEndNode(Node endNode)
endNode
- The node to set the end node topublic Notation getNotation()
public void setNotation(Notation notation)
notation
- Edge informationpublic void remove()
public void restore()
public Node getConnector(Node node)
node
- One of the two edgespublic boolean compare(Edge edge)
edge
- The edge to test againt