parent
d9f77f0753
commit
bb23e1b30c
@ -0,0 +1,87 @@ |
||||
package com.dky.calculate; |
||||
|
||||
|
||||
public class Overall { |
||||
|
||||
|
||||
/** |
||||
* 初次投资费用(万元) |
||||
* @param floor 建筑面积 |
||||
* @param heatArea 单台电设备参考的可供暖面积 |
||||
* @param devPrice 单台电设备价格 |
||||
* @return |
||||
*/ |
||||
public Double investment(Double floor, |
||||
Double heatArea, |
||||
Double devPrice){ |
||||
int remainder = (int)(floor/heatArea) + (floor%heatArea==0?0:1); |
||||
return remainder * devPrice; |
||||
} |
||||
|
||||
/** |
||||
* 年运行费用(万元) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @param laborCost 电替代设备人工费用成本 |
||||
* @return |
||||
*/ |
||||
public Double getRunCost(Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days, |
||||
Double laborCost){ |
||||
return deviceNum * devicePower * days * 24 * 0.5 + laborCost; |
||||
} |
||||
|
||||
/** |
||||
* 年总费用(万元) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePrice 单台电设备价格 |
||||
* @param useYears 使用年限 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @param laborCost 电替代设备人工费用成本 |
||||
* @return |
||||
*/ |
||||
public Double getYearCost(Integer deviceNum, |
||||
Double devicePrice, |
||||
Integer useYears, |
||||
Double devicePower, |
||||
Integer days, |
||||
Double laborCost){ |
||||
double run = deviceNum * devicePower * days * 24 * 0.5 + laborCost; |
||||
return ((deviceNum * devicePrice) / useYears) + run; |
||||
} |
||||
|
||||
/** |
||||
* 年减碳 |
||||
* @param lastYearFee 上年运行费用(万元) |
||||
* @param oldDaborCost 原设备的人工费用(万元) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @return |
||||
*/ |
||||
public Double calculateAnnualCarbonReduction(Double lastYearFee, |
||||
Double oldDaborCost, |
||||
Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days){ |
||||
double d1 = (((lastYearFee - oldDaborCost) / 0.9) * 0.7143); |
||||
double d2 = deviceNum * devicePower * days * 24; |
||||
return (d1 - (d2 * 0.1229)) * 1.9003; |
||||
} |
||||
|
||||
/** |
||||
* 替代电量(千瓦时) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @return |
||||
*/ |
||||
public Double getElectric(Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days){ |
||||
return deviceNum * devicePower * days * 24 ; |
||||
} |
||||
} |
@ -0,0 +1,147 @@ |
||||
package com.dky.entity; |
||||
|
||||
|
||||
public class CoolHeat { |
||||
|
||||
// 年采暖时间(天)
|
||||
private Integer yearGetHeatDays; |
||||
|
||||
// 是否有蒸汽/生活热水需求(1是,2否)
|
||||
private Integer isHeatWater; |
||||
|
||||
// 每小时最大需求量(吨蒸汽)
|
||||
private Double hourMaxXqlDZQ; |
||||
|
||||
// 每小时最大需求量(吨热水)
|
||||
private Double hourMaxXqlDRS; |
||||
|
||||
// 是否有供冷需求(1是,2否)
|
||||
private Integer isCool; |
||||
|
||||
// 年供冷时间(天)
|
||||
private Integer yearGetCoolDays; |
||||
|
||||
// 末端形式(1风机盘管,2地暖,3暖气片,4无末端)
|
||||
private Integer endForm; |
||||
|
||||
// 单台电锅炉的需求功率
|
||||
private Double needPower; |
||||
|
||||
// 单台电设备参考的可供暖面积
|
||||
private Double heatArea; |
||||
|
||||
// 单台电设备价格
|
||||
private Double devPrice; |
||||
|
||||
// 电替代设备人工费用成本
|
||||
private Double laborCost; |
||||
|
||||
// 电锅炉的使用年限
|
||||
private Integer useYears; |
||||
|
||||
private OriginalDevice originalDevice; |
||||
|
||||
public Integer getYearGetHeatDays() { |
||||
return yearGetHeatDays; |
||||
} |
||||
|
||||
public void setYearGetHeatDays(Integer yearGetHeatDays) { |
||||
this.yearGetHeatDays = yearGetHeatDays; |
||||
} |
||||
|
||||
public Integer getIsHeatWater() { |
||||
return isHeatWater; |
||||
} |
||||
|
||||
public void setIsHeatWater(Integer isHeatWater) { |
||||
this.isHeatWater = isHeatWater; |
||||
} |
||||
|
||||
public Double getHourMaxXqlDZQ() { |
||||
return hourMaxXqlDZQ; |
||||
} |
||||
|
||||
public void setHourMaxXqlDZQ(Double hourMaxXqlDZQ) { |
||||
this.hourMaxXqlDZQ = hourMaxXqlDZQ; |
||||
} |
||||
|
||||
public Double getHourMaxXqlDRS() { |
||||
return hourMaxXqlDRS; |
||||
} |
||||
|
||||
public void setHourMaxXqlDRS(Double hourMaxXqlDRS) { |
||||
this.hourMaxXqlDRS = hourMaxXqlDRS; |
||||
} |
||||
|
||||
public Integer getIsCool() { |
||||
return isCool; |
||||
} |
||||
|
||||
public void setIsCool(Integer isCool) { |
||||
this.isCool = isCool; |
||||
} |
||||
|
||||
public Integer getYearGetCoolDays() { |
||||
return yearGetCoolDays; |
||||
} |
||||
|
||||
public void setYearGetCoolDays(Integer yearGetCoolDays) { |
||||
this.yearGetCoolDays = yearGetCoolDays; |
||||
} |
||||
|
||||
public Integer getEndForm() { |
||||
return endForm; |
||||
} |
||||
|
||||
public void setEndForm(Integer endForm) { |
||||
this.endForm = endForm; |
||||
} |
||||
|
||||
public Double getNeedPower() { |
||||
return needPower; |
||||
} |
||||
|
||||
public void setNeedPower(Double needPower) { |
||||
this.needPower = needPower; |
||||
} |
||||
|
||||
public Double getHeatArea() { |
||||
return heatArea; |
||||
} |
||||
|
||||
public void setHeatArea(Double heatArea) { |
||||
this.heatArea = heatArea; |
||||
} |
||||
|
||||
public Double getDevPrice() { |
||||
return devPrice; |
||||
} |
||||
|
||||
public void setDevPrice(Double devPrice) { |
||||
this.devPrice = devPrice; |
||||
} |
||||
|
||||
public Double getLaborCost() { |
||||
return laborCost; |
||||
} |
||||
|
||||
public void setLaborCost(Double laborCost) { |
||||
this.laborCost = laborCost; |
||||
} |
||||
|
||||
public Integer getUseYears() { |
||||
return useYears; |
||||
} |
||||
|
||||
public void setUseYears(Integer useYears) { |
||||
this.useYears = useYears; |
||||
} |
||||
|
||||
public OriginalDevice getOriginalDevice() { |
||||
return originalDevice; |
||||
} |
||||
|
||||
public void setOriginalDevice(OriginalDevice originalDevice) { |
||||
this.originalDevice = originalDevice; |
||||
} |
||||
} |
@ -0,0 +1,66 @@ |
||||
package com.dky.entity; |
||||
|
||||
|
||||
public class OriginalDevice { |
||||
|
||||
// 设备类型(1锅炉,2市政)
|
||||
private String deviceType; |
||||
// 设备数量(台)
|
||||
private Integer deviceNum; |
||||
// 功能(1供暖,2供冷,3热水)
|
||||
private Integer deviceFun; |
||||
// 设备能源类型(1煤,2油,3气,4汽)
|
||||
private String deviceEnergyType; |
||||
// 上年运行费用(万元)
|
||||
private Double lastYearFee; |
||||
// 原设备的人工费用(万元)
|
||||
private Double oldDaborCost; |
||||
|
||||
public String getDeviceType() { |
||||
return deviceType; |
||||
} |
||||
|
||||
public void setDeviceType(String deviceType) { |
||||
this.deviceType = deviceType; |
||||
} |
||||
|
||||
public Integer getDeviceNum() { |
||||
return deviceNum; |
||||
} |
||||
|
||||
public void setDeviceNum(Integer deviceNum) { |
||||
this.deviceNum = deviceNum; |
||||
} |
||||
|
||||
public Integer getDeviceFun() { |
||||
return deviceFun; |
||||
} |
||||
|
||||
public void setDeviceFun(Integer deviceFun) { |
||||
this.deviceFun = deviceFun; |
||||
} |
||||
|
||||
public String getDeviceEnergyType() { |
||||
return deviceEnergyType; |
||||
} |
||||
|
||||
public void setDeviceEnergyType(String deviceEnergyType) { |
||||
this.deviceEnergyType = deviceEnergyType; |
||||
} |
||||
|
||||
public Double getLastYearFee() { |
||||
return lastYearFee; |
||||
} |
||||
|
||||
public void setLastYearFee(Double lastYearFee) { |
||||
this.lastYearFee = lastYearFee; |
||||
} |
||||
|
||||
public Double getOldDaborCost() { |
||||
return oldDaborCost; |
||||
} |
||||
|
||||
public void setOldDaborCost(Double oldDaborCost) { |
||||
this.oldDaborCost = oldDaborCost; |
||||
} |
||||
} |
@ -0,0 +1,38 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
<parent> |
||||
<artifactId>dntd-model-tool1</artifactId> |
||||
<groupId>com.dky</groupId> |
||||
<version>1.0-SNAPSHOT</version> |
||||
</parent> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<artifactId>dntd-model-madekiln</artifactId> |
||||
|
||||
<properties> |
||||
<maven.compiler.source>8</maven.compiler.source> |
||||
<maven.compiler.target>8</maven.compiler.target> |
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
</properties> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>cn.hutool</groupId> |
||||
<artifactId>hutool-all</artifactId> |
||||
<version>5.4.5</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.dky</groupId> |
||||
<artifactId>dntd-modelI</artifactId> |
||||
<version>1.0-SNAPSHOT</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.dky</groupId> |
||||
<artifactId>dntd-common</artifactId> |
||||
<version>1.0-SNAPSHOT</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
</project> |
@ -0,0 +1,92 @@ |
||||
package com.dky.calculate; |
||||
|
||||
|
||||
public class Overall { |
||||
|
||||
/** |
||||
* 初次投资费用(万元) |
||||
* @param yearOut 预计年产量 |
||||
* @param madeHours 单台电设备制造一批产品的周期小时 |
||||
* @param proOut 单台电设备制造一批产品的产量 |
||||
* @param runHours 单台设备年运行时间 |
||||
* @param devicePrice 单台电设备价格 |
||||
* @return |
||||
*/ |
||||
public Double investment(Double yearOut, |
||||
Integer madeHours, |
||||
Integer proOut, |
||||
Integer runHours, |
||||
Double devicePrice){ |
||||
double d1 = yearOut * madeHours; |
||||
double d2 = proOut * runHours; |
||||
int remainder = (int)(d1/d2) + (d1%d2==0?0:1); |
||||
return remainder * devicePrice; |
||||
} |
||||
|
||||
/** |
||||
* 年运行费用(万元) |
||||
* @param deviceNum 电设备设备台数 |
||||
* @param devicePower 单台电设备的功率 |
||||
* @param days 电设备年运行时间 |
||||
* @param laborCost 电替代设备人工费用成本 |
||||
* @return |
||||
*/ |
||||
public Double getRunCost(Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days, |
||||
Double laborCost){ |
||||
return deviceNum * devicePower * days * 0.5 + laborCost; |
||||
} |
||||
|
||||
/** |
||||
* 年总费用(万元) |
||||
* @param deviceNum 电设备设备台数 |
||||
* @param devicePrice 单台电设备价格 |
||||
* @param useYears 使用年限 |
||||
* @param devicePower 单台电设备的功率 |
||||
* @param days 电设备年运行时间(天) |
||||
* @param laborCost 电替代设备人工费用成本 |
||||
* @return |
||||
*/ |
||||
public Double getYearCost(Integer deviceNum, |
||||
Double devicePrice, |
||||
Integer useYears, |
||||
Double devicePower, |
||||
Integer days, |
||||
Double laborCost){ |
||||
double run = deviceNum * devicePower * days * 0.5 + laborCost; |
||||
return ((deviceNum * devicePrice) / useYears) + run; |
||||
} |
||||
|
||||
/** |
||||
* 年减碳 |
||||
* @param lastYearFee 上年运行费用(万元) |
||||
* @param oldDaborCost 原设备的人工费用(万元) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @return |
||||
*/ |
||||
public Double calculateAnnualCarbonReduction(Double lastYearFee, |
||||
Double oldDaborCost, |
||||
Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days){ |
||||
double d1 = (((lastYearFee - oldDaborCost) / 0.9) * 0.7143); |
||||
double d2 = deviceNum * devicePower * days ; |
||||
return (d1 - (d2 * 0.1229)) * 1.9003; |
||||
} |
||||
|
||||
/** |
||||
* 替代电量(千瓦时) |
||||
* @param deviceNum 电锅炉设备台数 |
||||
* @param devicePower 单台电锅炉的功率 |
||||
* @param days 年采暖(供冷)时间(天) |
||||
* @return |
||||
*/ |
||||
public Double getElectric(Integer deviceNum, |
||||
Double devicePower, |
||||
Integer days){ |
||||
return deviceNum * devicePower * days ; |
||||
} |
||||
} |
@ -0,0 +1,116 @@ |
||||
package com.dky.entity; |
||||
|
||||
|
||||
public class MadeKiln { |
||||
|
||||
// 电替代设备的功率
|
||||
private Double devicePower; |
||||
// 单台电设备制造一批产品的周期(小时)
|
||||
private Integer madeHours; |
||||
// 单台电设备制造一批产品的产量
|
||||
private Integer proOut; |
||||
// 单台电设备价格
|
||||
private Double devPrice; |
||||
// 电替代设备人工费用
|
||||
private Double laborCost; |
||||
// 电设备年运行时间
|
||||
private Double runHours; |
||||
// 制造类型(1金属,2陶瓷,3其它)
|
||||
private Integer madeType; |
||||
// 预计年产量(吨)
|
||||
private Double yearOut; |
||||
// 工作容积(升)(合计)
|
||||
private Double volAge; |
||||
// 温度要求(摄氏度)
|
||||
private Double needTemp; |
||||
|
||||
private OriginalDevice originalDevice; |
||||
|
||||
public Double getDevicePower() { |
||||
return devicePower; |
||||
} |
||||
|
||||
public void setDevicePower(Double devicePower) { |
||||
this.devicePower = devicePower; |
||||
} |
||||
|
||||
public Integer getMadeHours() { |
||||
return madeHours; |
||||
} |
||||
|
||||
public void setMadeHours(Integer madeHours) { |
||||
this.madeHours = madeHours; |
||||
} |
||||
|
||||
public Integer getProOut() { |
||||
return proOut; |
||||
} |
||||
|
||||
public void setProOut(Integer proOut) { |
||||
this.proOut = proOut; |
||||
} |
||||
|
||||
public Double getDevPrice() { |
||||
return devPrice; |
||||
} |
||||
|
||||
public void setDevPrice(Double devPrice) { |
||||
this.devPrice = devPrice; |
||||
} |
||||
|
||||
public Double getLaborCost() { |
||||
return laborCost; |
||||
} |
||||
|
||||
public void setLaborCost(Double laborCost) { |
||||
this.laborCost = laborCost; |
||||
} |
||||
|
||||
public Double getRunHours() { |
||||
return runHours; |
||||
} |
||||
|
||||
public void setRunHours(Double runHours) { |
||||
this.runHours = runHours; |
||||
} |
||||
|
||||
public Integer getMadeType() { |
||||
return madeType; |
||||
} |
||||
|
||||
public void setMadeType(Integer madeType) { |
||||
this.madeType = madeType; |
||||
} |
||||
|
||||
public Double getYearOut() { |
||||
return yearOut; |
||||
} |
||||
|
||||
public void setYearOut(Double yearOut) { |
||||
this.yearOut = yearOut; |
||||
} |
||||
|
||||
public Double getVolAge() { |
||||
return volAge; |
||||
} |
||||
|
||||
public void setVolAge(Double volAge) { |
||||
this.volAge = volAge; |
||||
} |
||||
|
||||
public Double getNeedTemp() { |
||||
return needTemp; |
||||
} |
||||
|
||||
public void setNeedTemp(Double needTemp) { |
||||
this.needTemp = needTemp; |
||||
} |
||||
|
||||
public OriginalDevice getOriginalDevice() { |
||||
return originalDevice; |
||||
} |
||||
|
||||
public void setOriginalDevice(OriginalDevice originalDevice) { |
||||
this.originalDevice = originalDevice; |
||||
} |
||||
} |
@ -0,0 +1,52 @@ |
||||
package com.dky.entity; |
||||
|
||||
|
||||
public class OriginalDevice { |
||||
|
||||
private int equipmentType; // 设备类型(1锅炉,2窑炉,3灶台)
|
||||
private int quantity; // 台数(台)
|
||||
private int energyType; // 能源类型(1煤,2油,3气)
|
||||
private double previousYearOperatingCost; // 上年运行费用(万元)
|
||||
|
||||
private double oldLaborCost; // 原设备的人工费用
|
||||
|
||||
public double getOldLaborCost() { |
||||
return oldLaborCost; |
||||
} |
||||
|
||||
public void setOldLaborCost(double oldLaborCost) { |
||||
this.oldLaborCost = oldLaborCost; |
||||
} |
||||
|
||||
public int getEquipmentType() { |
||||
return equipmentType; |
||||
} |
||||
|
||||
public void setEquipmentType(int equipmentType) { |
||||
this.equipmentType = equipmentType; |
||||
} |
||||
|
||||
public int getQuantity() { |
||||
return quantity; |
||||
} |
||||
|
||||
public void setQuantity(int quantity) { |
||||
this.quantity = quantity; |
||||
} |
||||
|
||||
public int getEnergyType() { |
||||
return energyType; |
||||
} |
||||
|
||||
public void setEnergyType(int energyType) { |
||||
this.energyType = energyType; |
||||
} |
||||
|
||||
public double getPreviousYearOperatingCost() { |
||||
return previousYearOperatingCost; |
||||
} |
||||
|
||||
public void setPreviousYearOperatingCost(double previousYearOperatingCost) { |
||||
this.previousYearOperatingCost = previousYearOperatingCost; |
||||
} |
||||
} |
Loading…
Reference in new issue