计算台站数据的质量

This commit is contained in:
qiaoqinzheng 2023-08-02 10:36:00 +08:00
parent 23265b3046
commit 1e9c2b156d
2 changed files with 11 additions and 2 deletions

View File

@ -67,11 +67,18 @@ public class CalculateDataRateThread implements Runnable{
calculateDataRate.setMStationType(stationInfo.getType());
//计算台站数据
Rate calculate = this.calculate(calculateDataRate);
stationInfo.setPhdf(String.valueOf(calculate.getPhdfOffered()/calculate.getPhdfEfficient()));
stationInfo.setPhd(String.valueOf(calculate.getPhdOffered()/calculate.getPhdEfficient()));
stationInfo.setPhdf(calculate.getPhdfOffered()+"/"+calculate.getPhdfEfficient());
stationInfo.setPhd(calculate.getPhdOffered()+"/"+calculate.getPhdEfficient());
stationInfo.setMet(String.valueOf(calculate.getMet()));
stationInfo.setSoh(String.valueOf(calculate.getSoh()));
stationInfo.setPhdMetSoh(String.valueOf(calculate.getPhdMetSoh()));
if(calculate.getPhdfEfficient() >= mRateparam.getParameter().getExcellent()) {
stationInfo.setQuality("excellent");
} else if(calculate.getPhdfEfficient() >= mRateparam.getParameter().getGood()) {
stationInfo.setQuality("good");
} else {
stationInfo.setQuality("bad");
}
//赋值最后的结果
finallySta.add(stationInfo);
}

View File

@ -35,4 +35,6 @@ public class StationInfo implements Serializable {
private String used;
private String quality;
}