You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
848 B
30 lines
848 B
package com.dky.calculate;
|
|
|
|
|
|
public class Overall {
|
|
|
|
//年运行费用
|
|
public Double yearRunFee(Double yearEnergy,Double electricityPrice) {
|
|
// 1蒸吨蒸汽需要770kWh电。
|
|
//年总用电yearEnergy*770
|
|
//根据传入得替代前年能源用量计算出年用电量
|
|
//年用电量用电量乘以电价
|
|
return yearEnergy*770*electricityPrice;
|
|
}
|
|
//年总费用
|
|
public Double yearTotalFee(Double yearRunFee) {
|
|
// 年运行费用*系数+年运行费用。(10%)
|
|
return yearRunFee*0.1+yearRunFee;
|
|
}
|
|
//年减碳量(吨)
|
|
public Double yearReduceCarbon(Double yearEnergy) {
|
|
// 年用电量*1.229
|
|
return yearEnergy*770*1.229;
|
|
}
|
|
//替代电量
|
|
public Double replaceEnergy(Double yearEnergy) {
|
|
|
|
return yearEnergy*770;
|
|
}
|
|
|
|
}
|
|
|