if(StreamItOptions.sync)   count++; else {   FlatNode[] edges = ((FlatNode)entry.getValue()).edges; int increment = 1; for (int i=0; i<edges.length; i++) { if (edges[i]!=null && edges[i].contents instanceof SIRJoiner) { increment = 0; }
FlatNode[] edges = ((FlatNode)entry.getValue()).edges; int increment = 1; for (int i=0; i<edges.length; i++) { if (edges[i]!=null && edges[i].contents instanceof SIRJoiner) { increment = 0;
    public int getNumTiles() {	dumpGraph("crash.dot");	int count = 0;	for (Iterator it = SIRMap.entrySet().iterator(); it.hasNext(); ) {	    Map.Entry entry = (Map.Entry)it.next();	    if (entry.getKey() instanceof SIRFilter) {		if (Util.countMe((SIRFilter)entry.getKey()))		    count++;	    }	    else if (entry.getKey() instanceof SIRJoiner) {		if(StreamItOptions.sync)		    //Sync removal should give an accurate count of joiners		    //(Adjacent Joiners Coalesced)		    count++;		else {		    // count a joiner if none of its outgoing edges is to		    // another joiner		    FlatNode[] edges = ((FlatNode)entry.getValue()).edges;		    int increment = 1;		    for (int i=0; i<edges.length; i++) {			if (edges[i]!=null &&			    edges[i].contents instanceof SIRJoiner) {			    increment = 0;			}		    }		    count += increment;		}	    } 	}	return count;    }