Package lv.odylab.evemanage.integration.evedb.dto

Examples of lv.odylab.evemanage.integration.evedb.dto.BlueprintDetailsDto


        this.eveDbGateway = eveDbGateway;
    }

    @Override
    public Calculation getCalculation(String blueprintName) throws EveDbException, InvalidNameException {
        BlueprintDetailsDto blueprintDetailsDto = eveDbGateway.getBlueprintDetailsForTypeName(blueprintName);
        BlueprintTypeDto blueprintTypeDto = blueprintDetailsDto.getBlueprintTypeDto();
        Long[] pathNodes = new Long[]{blueprintTypeDto.getProductTypeID()};
        return getCalculation(pathNodes, blueprintDetailsDto, Collections.<Long, String>emptyMap());
    }
View Full Code Here


        return getCalculation(pathNodes, blueprintDetailsDto, Collections.<Long, String>emptyMap());
    }

    @Override
    public Calculation getCalculation(Long[] pathNodes, String blueprintName) throws EveDbException, InvalidNameException {
        BlueprintDetailsDto blueprintDetailsDto = eveDbGateway.getBlueprintDetailsForTypeName(blueprintName);
        return getCalculation(pathNodes, blueprintDetailsDto, Collections.<Long, String>emptyMap());
    }
View Full Code Here

    @Override
    public Calculation getCalculationForExpression(CalculationExpression calculationExpression) throws EveDbException, InvalidNameException {
        String blueprintTypeNameFromUrl = calculationExpression.getBlueprintTypeName();
        String blueprintTypeName = securityManager.decodeUrlString(blueprintTypeNameFromUrl);
        calculationExpression.setBlueprintTypeName(blueprintTypeName);
        BlueprintDetailsDto blueprintDetailsDto = eveDbGateway.getBlueprintDetailsForTypeName(blueprintTypeName);
        BlueprintTypeDto blueprintTypeDto = blueprintDetailsDto.getBlueprintTypeDto();
        Long[] pathNodes = new Long[]{blueprintTypeDto.getProductTypeID()};
        Calculation calculation = getCalculation(pathNodes, blueprintDetailsDto, calculationExpression.getPriceSetItemTypeIdToPriceMap());
        calculation.setMaterialLevel(calculationExpression.getMeLevel());
        calculation.setProductivityLevel(calculationExpression.getPeLevel());
        return calculation;
View Full Code Here

        return requirementDto;
    }

    @Override
    public BlueprintDetailsDto map(lv.odylab.evedb.rpc.dto.BlueprintDetailsDto blueprintDetailsDto, Class<BlueprintDetailsDto> blueprintDetailsDtoClass) {
        BlueprintDetailsDto blueprintDetails = new BlueprintDetailsDto();
        blueprintDetails.setBlueprintTypeDto(map(blueprintDetailsDto.getInvBlueprintTypeDto(), BlueprintTypeDto.class));

        List<TypeMaterialDto> materialDtos = new ArrayList<TypeMaterialDto>();
        for (InvTypeMaterialDto invTypeMaterialDto : blueprintDetailsDto.getMaterialDtos()) {
            materialDtos.add(map(invTypeMaterialDto, TypeMaterialDto.class));
        }
        List<TypeRequirementDto> manufacturingRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getManufacturingRequirementDtos()) {
            manufacturingRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        List<TypeRequirementDto> timeProductivityRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getTimeProductivityRequirementDtos()) {
            timeProductivityRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        List<TypeRequirementDto> materialProductivityRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getMaterialProductivityRequirementDtos()) {
            materialProductivityRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        List<TypeRequirementDto> copyingRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getCopyingRequirementDtos()) {
            copyingRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        List<TypeRequirementDto> reverseEngineeringRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getReverseEngineeringRequirementDtos()) {
            reverseEngineeringRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        List<TypeRequirementDto> inventionRequirementDtos = new ArrayList<TypeRequirementDto>();
        for (RamTypeRequirementDto ramTypeRequirementDto : blueprintDetailsDto.getInventionRequirementDtos()) {
            inventionRequirementDtos.add(map(ramTypeRequirementDto, TypeRequirementDto.class));
        }
        blueprintDetails.setMaterialDtos(materialDtos);
        blueprintDetails.setManufacturingRequirementDtos(manufacturingRequirementDtos);
        blueprintDetails.setTimeProductivityRequirementDtos(timeProductivityRequirementDtos);
        blueprintDetails.setMaterialProductivityRequirementDtos(materialProductivityRequirementDtos);
        blueprintDetails.setCopyingRequirementDtos(copyingRequirementDtos);
        blueprintDetails.setReverseEngineeringRequirementDtos(reverseEngineeringRequirementDtos);
        blueprintDetails.setInventionRequirementDtos(inventionRequirementDtos);
        return blueprintDetails;
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.integration.evedb.dto.BlueprintDetailsDto

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.