|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.jperf.Node
Node is an object class representing nodes in GGPerf's intermediate graph.
| Field Summary | |
private Hashtable |
adjacency
Adjancency list of the node. |
private long |
gValue
g-value of the node. |
private long |
label
Label of the node. |
private boolean |
visited
Flag indicating whether the node has been visited during the current cyclicity checking process. |
| Constructor Summary | |
Node(long l)
Creates a new node labelled as the argument in the intermediate graph. |
|
| Method Summary | |
void |
addAdjacency(Node node,
long edge)
Add an adjacent node with its edge to the adjacency list of this node. |
void |
assignGValue(long val,
int max)
Recursively assigns g_value for all nodes that could be reached from this node. |
long |
getGValue()
Return the G value of the node. |
long |
getLabel()
Return the label of the node. |
boolean |
getVisited()
Return the current status of the node. |
boolean |
reaches(Node target)
Checks wheter there is a path from this node to the target node. |
void |
setVisited(boolean b)
During a cyclicity checking process, set the status to be the argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final long label
private long gValue
private Hashtable adjacency
private boolean visited
| Constructor Detail |
public Node(long l)
l - The label.| Method Detail |
public long getLabel()
public long getGValue()
public void addAdjacency(Node node,
long edge)
node - The adjacent node.edge - The edge between this node and the adjacent node.public boolean getVisited()
public void setVisited(boolean b)
b - the status. True mean having been visited.public boolean reaches(Node target)
target - the target node
public void assignGValue(long val,
int max)
val - the value to assign to this nodemax - the maximum value (= # of keywords)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||