Examples of PricingProcessorResult


Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

        calculationTree.removeAllNodes();
        calculationTree.build(calculation);

        computableCalculation.setCalculation(calculation);

        PricingProcessorResult pricingProcessorResult = pricingProcessor.process(1L, calculationTree, existingCalculationPriceSetItemDtoMap);
        Map<Long, CalculationPriceSetItemDto> typeIdToCalculationPriceSetItemMap = pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap();
        drawCalculationTree();
        //drawBlueprintCostItem(calculation);
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(typeIdToCalculationPriceSetItemMap.values()));
        recalculate();
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

                drawCalculationItem(table, calculationTreeNode);
            }
            showBlueprintDetails(editableCalculationItem);
        }

        PricingProcessorResult pricingProcessorResult = pricingProcessor.process(1L, calculationTree, createExistingTypeIdToCalculationPriceSetItemMap());
        Map<Long, CalculationPriceSetItemDto> typeIdToCalculationPriceSetItemMap = pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap();
        priceSetItemTable.removeAllRows();
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(typeIdToCalculationPriceSetItemMap.values()));
        recalculate();

        return pathNodesStringsWithBlueprint;
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

    @Override
    public void excludeCalculationTreeNodeFromCalculation(Long[] pathNodes) {
        CalculationTreeNode calculationTreeNode = calculationTree.getNodeByPathNodes(pathNodes);
        calculationTreeNode.setExcludeChildNodesFromCalculation(true);
        PricingProcessorResult pricingProcessorResult = recalculate(createExistingTypeIdToCalculationPriceSetItemMap());
        priceSetItemTable.removeAllRows();
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().values()));
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

    public void excludeCalculationTreeNodesFromCalculation(List<Long[]> pathNodesList) {
        for (Long[] pathNodes : pathNodesList) {
            CalculationTreeNode calculationTreeNode = calculationTree.getNodeByPathNodes(pathNodes);
            calculationTreeNode.setExcludeChildNodesFromCalculation(true);
        }
        PricingProcessorResult pricingProcessorResult = recalculate(createExistingTypeIdToCalculationPriceSetItemMap());
        priceSetItemTable.removeAllRows();
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().values()));
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

    @Override
    public void includeCalculationTreeNodeInCalculation(Long[] pathNodes) {
        CalculationTreeNode calculationTreeNode = calculationTree.getNodeByPathNodes(pathNodes);
        calculationTreeNode.setExcludeChildNodesFromCalculation(false);
        PricingProcessorResult pricingProcessorResult = recalculate();
        priceSetItemTable.removeAllRows();
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().values()));
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

    public void includeCalculationTreeNodesInCalculation(List<Long[]> pathNodesList) {
        for (Long[] pathNodes : pathNodesList) {
            CalculationTreeNode calculationTreeNode = calculationTree.getNodeByPathNodes(pathNodes);
            calculationTreeNode.setExcludeChildNodesFromCalculation(false);
        }
        PricingProcessorResult pricingProcessorResult = recalculate(createExistingTypeIdToCalculationPriceSetItemMap());
        priceSetItemTable.removeAllRows();
        drawCalculationPriceSetItems(new ArrayList<CalculationPriceSetItemDto>(pricingProcessorResult.getTypeIdToCalculationPriceSetItemMap().values()));
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.presenter.tab.calculator.PricingProcessorResult

        return recalculate(null);
    }

    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);
            computableCalculationPriceSetItem.recalculate();
        }
        computableCalculation.getCalculation().setPrice(pricingProcessorResult.getTotalPrice());
        computableCalculation.recalculate(calculator);
        return pricingProcessorResult;
    }
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.