Integer nOldVal = s_mapProbability.get(curProc);
int nDelta = (nOldVal == null) ? value : (value - nOldVal);
int nNewTotal = s_nTotalProbablity + nDelta;
if (nNewTotal > 100)
{
throw new TotalProbabilityExceeds100Exception(nOldVal, value);
}
s_mapProbability.put(curProc, value);
s_nTotalProbablity = nNewTotal;
}