|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.jperf.Node
Node is an object class representing nodes in GGPerf's intermediate graph.
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 whether 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 |
|
Constructor Detail |
public Node(long l)
label
- 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.true
iff the target node is reachable.public void assignGValue(long val, int max)
val
- the value to assign to this node.max
- the maximum value (= # of keywords).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |