Examples of reCalculate()


Examples of lv.odylab.evemanage.client.presenter.tab.calculator.ComputableCalculationItem.recalculate()

    private PricingProcessorResult recalculate(Map<Long, CalculationPriceSetItemDto> existingTypeIdToCalculationPriceSetItemMap) {
        Long quantity = Long.valueOf(editableCalculation.getQuantityTextBox().getText());
        PricingProcessorResult pricingProcessorResult = pricingProcessor.process(quantity, calculationTree, existingTypeIdToCalculationPriceSetItemMap);
        for (Map.Entry<String, ComputableCalculationItem> mapEntry : pathNodesStringToComputableCalculationItemMap.entrySet()) {
            ComputableCalculationItem computableCalculationItem = mapEntry.getValue();
            computableCalculationItem.recalculate();
        }
        for (Map.Entry<Long, CalculationPriceSetItemDto> mapEntry : pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().entrySet()) {
            CalculationPriceSetItemDto calculationPriceSetItemDto = mapEntry.getValue();
            ComputableCalculationPriceSetItem computableCalculationPriceSetItem = typeIdToComputableCalculationPriceSetItemMap.get(mapEntry.getKey());
            computableCalculationPriceSetItem.setCalculationPriceSetItem(calculationPriceSetItemDto);
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.ComputableCalculationPriceSetItem.recalculate()

        }
        for (Map.Entry<Long, CalculationPriceSetItemDto> mapEntry : pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().entrySet()) {
            CalculationPriceSetItemDto calculationPriceSetItemDto = mapEntry.getValue();
            ComputableCalculationPriceSetItem computableCalculationPriceSetItem = typeIdToComputableCalculationPriceSetItemMap.get(mapEntry.getKey());
            computableCalculationPriceSetItem.setCalculationPriceSetItem(calculationPriceSetItemDto);
            computableCalculationPriceSetItem.recalculate();
        }
        computableCalculation.getCalculation().setPrice(pricingProcessorResult.getTotalPrice());
        computableCalculation.recalculate(calculator);
        return pricingProcessorResult;
    }
View Full Code Here

Examples of net.sourceforge.processdash.ev.EVDependencyCalculator.recalculate()

            String owner = ProcessDashboard.getOwnerName(context.getData());
            List dependencies = EVTaskDependency.getAllDependencies(context
                    .getData(), taskPath, owner);
            if (dependencies == null || dependencies.isEmpty())
                return dependencies;
            calc.recalculate(dependencies);

            // if there is only one EV task list containing this task, or if
            // there is a preferred task list, find the active task in that
            // task list, and compute the dependency target date.
            List taskListNames = EVTaskList.getPreferredTaskListsForPath(
View Full Code Here

Examples of net.sourceforge.processdash.ev.EVScheduleFiltered.recalculate()

        if (schedule instanceof EVScheduleFiltered) {
            EVScheduleFiltered filtSched = (EVScheduleFiltered) schedule;
            EVTaskFilter filter = filtSched.getFilter();
            String valid = filter.getAttribute(EVTaskFilter.IS_INVALID);
            if (valid == null)
                filtSched.recalculate();
            else
                dispose();
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.ev.TaskLabeler.recalculate()

            tl.recalc();
            tl = new EVTaskListMerged(tl, false, true, null);

            if (taskLabeler == null) {
                taskLabeler = new DefaultTaskLabeler(this);
                taskLabeler.recalculate();
            }
            tl.setTaskLabeler(taskLabeler);

            result.add(tl);
        }
View Full Code Here

Examples of org.jquantlib.instruments.EuropeanOption.recalculate()

        if (f.isUp()) {
            fail("implied volatility calculation triggered a change in another instrument");
        }

        option2.recalculate();
        if (Math.abs(option2.NPV() - refValue) >= 1.0e-8) {
            fail("implied volatility calculation changed the value "
                    + "of another instrument: \n"
                    + "previous value: " + refValue + "\n"
                    + "current value:  " + option2.NPV());
View Full Code Here

Examples of org.jquantlib.instruments.EuropeanOption.recalculate()

        if (f.isUp()) {
            fail("implied volatility calculation triggered a change in another instrument");
        }

        option2.recalculate();
        if (Math.abs(option2.NPV() - refValue) >= 1.0e-8) {
            fail("implied volatility calculation changed the value "
                    + "of another instrument: \n"
                    + "previous value: " + refValue + "\n"
                    + "current value:  " + option2.NPV());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.