deltaModel.setViewProcessId(result.getViewProcessId());
if (previousResult != null) {
deltaModel.setPreviousCalculationTime(previousResult.getCalculationTime());
}
for (String calcConfigName : result.getCalculationConfigurationNames()) {
final DeltaDefinition deltaDefinition = viewDefinition.getCalculationConfiguration(calcConfigName).getDeltaDefinition();
final ViewCalculationResultModel resultCalcModel = result.getCalculationResult(calcConfigName);
final ViewCalculationResultModel previousCalcModel = previousResult != null ? previousResult.getCalculationResult(calcConfigName) : null;
for (ComputationTargetSpecification targetSpec : resultCalcModel.getAllTargets()) {
computeDeltaModel(deltaDefinition, deltaModel, targetSpec, calcConfigName, previousCalcModel, resultCalcModel);
}