|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.GraphEdge
An edge object of CFGs and PDGs.
| Field Summary | |
protected GraphNode |
dst
A destination node of this edge. |
protected int |
sort
The sort of this edge which is selected from among GraphEdgeSort. |
protected GraphNode |
src
A sourec node of this edge. |
| Fields inherited from interface org.jtool.jxplatform.graph.GraphEdgeSort |
antiDependence, CDs, DDs, deforderDependence, defuseDependence, fallControlDependence, fallThroughFlow, falseControlDependence, falseControlFlow, flows, outputDependence, parameterFlow, parameterIn, parameterOut, trueControlDependence, trueControlFlow |
| Constructor Summary | |
protected |
GraphEdge()
Creates a new, empty edge. |
|
GraphEdge(GraphNode src,
GraphNode dst)
Creates a new edge. |
| Method Summary | |
boolean |
equals(GraphElement elem)
Tests if this edge equals to a given edge. |
GraphNode |
getDstNode()
Returns destination nodes of this edges. |
int |
getSort()
Returns the sort of this edge. |
GraphNode |
getSrcNode()
Returns source nodes of this edges. |
void |
print()
Displays information about this node. |
void |
print(java.lang.StringBuffer buf)
Collects information about this node for printing. |
void |
setDstNode(GraphNode node)
Sets a destination node of this edge. |
void |
setSort(int sort)
Sets the sort of this edge. |
void |
setSrcNode(GraphNode node)
Sets a source node of this edge. |
void |
write(java.lang.StringBuffer buf)
Collects information about this node for writing an XML document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected GraphNode src
protected GraphNode dst
protected int sort
GraphEdgeSort.
| Constructor Detail |
protected GraphEdge()
public GraphEdge(GraphNode src,
GraphNode dst)
src - A source node of this edge.dst - A destination node of this edge.| Method Detail |
public boolean equals(GraphElement elem)
equals in interface GraphElementelem - An edge to be checked.
true if the edges are equal, otherwise false.public void setSort(int sort)
sort - The sort of this edge.public int getSort()
public void setSrcNode(GraphNode node)
node - A source node.public void setDstNode(GraphNode node)
node - A destination node.public GraphNode getSrcNode()
public GraphNode getDstNode()
public void print()
print in interface GraphElementpublic void print(java.lang.StringBuffer buf)
buf - The information about the node.public void write(java.lang.StringBuffer buf)
buf - The information about the node.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||