8182838485868788
synchronized (indicesEvaluated) { time++; indicesEvaluated.put(index, new Integer(time)); } synchronized (valueMap) { valueMap.put(index, new EvalData(contribution, evaluator == null ? 0 : evaluator.pointsForIndex(index))); } }
123124125126127128129130131132133
index = index.set(dim0, i); index = index.set(dim1, j); int[] pixel = positionToPixel(new int[] {i, j}); EvalData data; synchronized (valueMap) { data = valueMap.get(index); } if (data == null) { calc = true;
120121122123124125126127128129130
} catch (Exception e) { } synchronized (task.valueMap) { int calls = task.evaluator.pointsForIndex(index); task.valueMap.put(index, new EvalData(contribution, calls)); } newIndex = true; } }