From: sivaji Date: Fri, 8 Jun 2007 14:34:01 +0000 (+0000) Subject: *Fixed the problem with double lined nodes. (It was due to incorrect X-Git-Tag: preEdgeChange~554 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67e1e78a6d4b878ec84b0f1fbd275aab55bb13b2;p=IRC.git *Fixed the problem with double lined nodes. (It was due to incorrect values in the cdtorootnodes datastructure) --- diff --git a/Robust/src/Analysis/TaskStateAnalysis/TaskAnalysis.java b/Robust/src/Analysis/TaskStateAnalysis/TaskAnalysis.java index 45cf7bea..fc2deea3 100644 --- a/Robust/src/Analysis/TaskStateAnalysis/TaskAnalysis.java +++ b/Robust/src/Analysis/TaskStateAnalysis/TaskAnalysis.java @@ -211,7 +211,7 @@ private void analyseTasks(FlagState fs) { FlagState fsnew=(FlagState) fsit.next(); fsnew.setAsSourceNode(); fsnew.addAllocatingTask(td); - ((Vector)cdtorootnodes.get(cd)).add(fsnew); + ((Vector)cdtorootnodes.get(fsnew.getClassDescriptor())).add(fsnew); if (! ((Hashtable)flagstates.get(fsnew.getClassDescriptor())).containsKey(fsnew)) { ((Hashtable)flagstates.get(fsnew.getClassDescriptor())).put(fsnew, fsnew); diff --git a/Robust/src/Interface/WebInterface.java b/Robust/src/Interface/WebInterface.java index 9b4d49c2..534fba41 100644 --- a/Robust/src/Interface/WebInterface.java +++ b/Robust/src/Interface/WebInterface.java @@ -44,6 +44,7 @@ public class WebInterface { // Should think of a better way to do this, instead of using a vector(maybe a class) cd_nodeid.addElement(cd); //adding the ClassDescriptor cd_nodeid.addElement(root.getLabel()); //adding the Node label + System.out.println(cd+" "+root.getLabel()); sourcenodemap.put("/"+cd.getSymbol()+"_"+root.getLabel()+".html",cd_nodeid); } }