EGTaskNode srcnode=new EGTaskNode(alloctask.getSymbol(),alloctask, fs);
nodes.add(srcnode);
srcnode.setSource();
- for (Iterator edges = fs.edges(); edges.hasNext();){
+ for (Iterator edges = fs.edges(); edges.hasNext();) {
FEdge edge = (FEdge)edges.next();
EGTaskNode targetnode=getNode(edge, map, nodes);
EGEdge newedge=new EGEdge(fs, targetnode);
private void test(Hashtable graph) {
System.out.println("\nGraph contains :");
Collection c = graph.values();
- for ( Iterator it = c.iterator(); it.hasNext();){
+ for ( Iterator it = c.iterator(); it.hasNext();) {
EGTaskNode tn = (EGTaskNode)it.next();
System.out.println(tn.getTextLabel()+" ID "+tn.getLabel()+" FS "+tn.getFSName());
}
//create dot files execution_classname_.dot
private void printDOTFile() throws java.io.IOException {
Enumeration e = executiongraph.keys();
- while (e.hasMoreElements()){
+ while (e.hasMoreElements()) {
createDOTFile((ClassDescriptor)e.nextElement());
}
}
private void traverse(java.io.PrintWriter output, Set v) {
EGTaskNode tn;
- for(Iterator it1 = v.iterator(); it1.hasNext();){
+ for(Iterator it1 = v.iterator(); it1.hasNext();) {
tn = (EGTaskNode)it1.next();
output.println("\t"+tn.getLabel()+" [label=\""+tn.getTextLabel()+"\"");
if (tn.isMultipleParams()) output.println(", color=blue");
output.println("];");
- for(Iterator it2 = tn.edges(); it2.hasNext();){
+ for(Iterator it2 = tn.edges(); it2.hasNext();) {
output.println("\t"+tn.getLabel()+" -> "+((EGTaskNode)((EGEdge)it2.next()).getTarget()).getLabel()+";");
}
}