|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.jperf.Graph
This class represents the intermediate graph
| Field Summary | |
private long |
maxNodeValue
|
private ArrayList |
nodes
|
| Constructor Summary | |
Graph(long maxNodeValue)
Constructs a new graph object |
|
| Method Summary | |
boolean |
addEdge(long label1,
long label2,
long edge)
Adds an edge (and the corresponding nodes if necessary) to the graph |
void |
addNode(Node node)
Adds a node to the graph. |
void |
assignGValues(int keywordCount)
Sets g-values for all nodes. |
void |
clearVisited()
Clears visited flags of all nodes. |
Node |
findNode(long label)
Searches node with given label the intermediate graph. |
void |
genCode(PrintWriter out)
Outputs g-values. |
void |
init()
Initialises the internal structures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final long maxNodeValue
private ArrayList nodes
| Constructor Detail |
public Graph(long maxNodeValue)
| Method Detail |
public void init()
public void addNode(Node node)
node - the node to addpublic Node findNode(long label)
label - the node label
public boolean addEdge(long label1,
long label2,
long edge)
label1 - the label of the source nodelabel2 - the label of the target nodeedge - the edge value
public void clearVisited()
public void assignGValues(int keywordCount)
public void genCode(PrintWriter out)
out - the output stream.
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||