计算台站数据的质量
This commit is contained in:
parent
23265b3046
commit
1e9c2b156d
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -35,4 +35,6 @@ public class StationInfo implements Serializable {
|
|||
|
||||
private String used;
|
||||
|
||||
private String quality;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user