Package lv.odylab.evemanage.client.rpc

Examples of lv.odylab.evemanage.client.rpc.PathExpression


    }

    public CalculationTreeNodeSummary getSummary() {
        CalculationTreeNodeSummary summary = new CalculationTreeNodeSummary();
        CalculationItemDto firstCalculationItemDto = calculationItems.get(0);
        PathExpression pathExpression = firstCalculationItemDto.getPathExpression();
        summary.setPathNodesString(pathExpression.getPathNodesString());
        summary.setPathNodes(pathExpression.getPathNodes());
        summary.setItemTypeID(firstCalculationItemDto.getItemTypeID());
        summary.setItemCategoryID(firstCalculationItemDto.getItemCategoryID());
        summary.setItemTypeName(firstCalculationItemDto.getItemTypeName());
        summary.setItemTypeIcon(firstCalculationItemDto.getItemTypeIcon());
        summary.setParentQuantity(firstCalculationItemDto.getParentQuantity());
View Full Code Here


        this.excludeChildNodesFromCalculation = excludeChildNodesFromCalculation;
    }

    public void changeMePe(Integer meLevel, Integer peLevel) {
        for (CalculationItemDto calculationItem : calculationItems) {
            PathExpression pathExpression = calculationItem.getPathExpression();
            if (pathExpression.isMaterial()) {
                pathExpression.setMeLevel(meLevel);
                pathExpression.setPeLevel(peLevel);
            }
            for (Map.Entry<Long, CalculationTreeNode> mapEntry : nodeMap.entrySet()) {
                CalculationTreeNode node = mapEntry.getValue();
                List<CalculationItemDto> nodeCalculationItems = node.getCalculationItems();
                for (CalculationItemDto nodeCalculationItem : nodeCalculationItems) {
                    PathExpression nodePathExpression = nodeCalculationItem.getPathExpression();
                    if (nodePathExpression.isMaterial()) {
                        nodePathExpression.setMeLevel(meLevel);
                        nodePathExpression.setPeLevel(peLevel);
                    }
                }
            }
        }
    }
View Full Code Here

        List<TypeRequirementDto> requirementDtos = blueprintDetailsDto.getManufacturingRequirementDtos();
        List<CalculationItem> calculationItems = new ArrayList<CalculationItem>();

        for (TypeMaterialDto materialDto : materialDtos) {
            CalculationItem calculationItem = new CalculationItem();
            PathExpression pathExpression = new PathExpression(pathNodes, calculation.getMaterialLevel(), calculation.getProductivityLevel(), materialDto.getMaterialTypeID());
            calculationItem.setPath(pathExpression.getPath());
            calculationItem.setItemTypeID(materialDto.getMaterialTypeID());
            calculationItem.setItemCategoryID(materialDto.getMaterialTypeCategoryID());
            calculationItem.setItemTypeName(materialDto.getMaterialTypeName());
            calculationItem.setItemTypeIcon(materialDto.getMaterialTypeGraphicIcon());
            calculationItem.setQuantity(materialDto.getQuantity());
            calculationItem.setParentQuantity(1L);
            calculationItem.setPerfectQuantity(materialDto.getQuantity());
            calculationItem.setWasteFactor(blueprintTypeDto.getWasteFactor());
            calculationItem.setDamagePerJob("1.00");
            String price = priceSetItemTypeIdToPriceMap.get(materialDto.getMaterialTypeID());
            calculationItem.setPrice(price == null ? "0.00" : price);
            calculationItem.setTotalPrice("0.00");
            calculationItem.setTotalPriceForParent("0.00");
            calculationItems.add(calculationItem);
        }

        for (TypeRequirementDto requirementDto : requirementDtos) {
            if (requirementDto.getRequiredTypeCategoryID() == 16L) {
                continue;
            }
            CalculationItem calculationItem = new CalculationItem();
            PathExpression pathExpression = new PathExpression(pathNodes, requirementDto.getRequiredTypeID());
            calculationItem.setPath(pathExpression.getPath());
            calculationItem.setItemTypeID(requirementDto.getRequiredTypeID());
            calculationItem.setItemCategoryID(requirementDto.getRequiredTypeCategoryID());
            calculationItem.setItemTypeName(requirementDto.getRequiredTypeName());
            calculationItem.setItemTypeIcon(requirementDto.getRequiredTypeNameGraphicIcon());
            calculationItem.setQuantity(requirementDto.getQuantity());
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.client.rpc.PathExpression

Copyright © 2018 www.massapicom. 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.