org.jtool.jxplatform.graph.pdg
Class CD

java.lang.Object
  extended byorg.jtool.jxplatform.graph.GraphEdge
      extended byorg.jtool.jxplatform.graph.pdg.Dependence
          extended byorg.jtool.jxplatform.graph.pdg.CD
All Implemented Interfaces:
GraphEdgeSort, GraphElement

public class CD
extends Dependence

A data dependence edge of PDGs.

Author:
Katsuhsa Maruyama

Field Summary
 
Fields inherited from class org.jtool.jxplatform.graph.GraphEdge
dst, sort, src
 
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 CD()
          Creates a new, empty object.
protected CD(PDGNode src, PDGNode dst)
          Creates a new edge.
 
Method Summary
 boolean isFallThrough()
          Tests if this edge is a fall through dependence.
 boolean isFalse()
          Tests if this edge is a false control dependence.
 boolean isTrue()
          Tests if this edge is a true control dependence.
 void print(java.lang.StringBuffer buf)
          Collects information about this edge for printing.
protected  void setFallThrough()
          Sets this edge as the fall through dependence.
protected  void setFalse()
          Sets this edge as the false control dependence.
protected  void setTrue()
          Sets this edge as the true control dependence.
 
Methods inherited from class org.jtool.jxplatform.graph.pdg.Dependence
equals, isCD, isDD, print, write
 
Methods inherited from class org.jtool.jxplatform.graph.GraphEdge
getDstNode, getSort, getSrcNode, setDstNode, setSort, setSrcNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CD

protected CD()
Creates a new, empty object.


CD

protected CD(PDGNode src,
             PDGNode dst)
Creates a new edge.

Parameters:
src - A source node of this edge.
dst - A destination node of this edge.
Method Detail

setTrue

protected void setTrue()
Sets this edge as the true control dependence.


isTrue

public boolean isTrue()
Tests if this edge is a true control dependence.

Returns:
true if this edge is a true control dependence, otherwise false.

setFalse

protected void setFalse()
Sets this edge as the false control dependence.


isFalse

public boolean isFalse()
Tests if this edge is a false control dependence.

Returns:
true if this edge is a false control dependence, otherwise false.

setFallThrough

protected void setFallThrough()
Sets this edge as the fall through dependence.


isFallThrough

public boolean isFallThrough()
Tests if this edge is a fall through dependence.

Returns:
true if this edge is a fall through dependence, otherwise false.

print

public void print(java.lang.StringBuffer buf)
Collects information about this edge for printing.

Overrides:
print in class Dependence
Parameters:
buf - The information about the edge.