+ /* handle this process' iterators */
+ String instance = "";
+ Vector<Integer> indices = p.getIteratorIndices();
+ switch(indices.size()) {
+ case 0: instance =
+ "0,0,0,0"; break;
+ case 1: instance =
+ indices.elementAt(0) +
+ ",0,0,0"; break;
+ case 2: instance =
+ indices.elementAt(0) +
+ indices.elementAt(1) +
+ ",0,0"; break;
+ case 3: instance =
+ indices.elementAt(0) +
+ "," + indices.elementAt(1) +
+ "," + indices.elementAt(2) +
+ ",0"; break;
+ case 4: instance =
+ indices.elementAt(0) +
+ "," + indices.elementAt(1) +
+ "," + indices.elementAt(2) +
+ "," + indices.elementAt(3); break;
+ default:
+ throw new Exception("Unsupported iterator dimension");
+ }
+
+