📄 tostatistic.java
字号:
package net.aetherial.gis.our.allauto.create;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.auto.extend.Statistic;
import net.aetherial.gis.our.auto.count.count.CountNoCut;
/**
* <p>Title: </p>
*
* <p>Description: 1、统计砂石、土路、油路,里程。2.统计行政村沟通情况</p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ToStatistic {
public ToStatistic() {
}
public double[] getLicheng(String directory,FrameOur fo){
double[] licheng = new double[6];
CountNoCut cnc = new CountNoCut(fo,null);
cnc.setInputDirectory(directory);
cnc.countAllFile();
licheng[0] = cnc.getDis_SHUI_NI_all_than_3();
licheng[1] = cnc.getDis_SHUI_NI_all_less_3();
licheng[2] = cnc.getDis_YOU_LU_all_than_3();
licheng[3] = cnc.getDis_YOU_LU_all_less_3();
licheng[4] = cnc.getDis_SHA_SHI_all();
licheng[5] = cnc.getDis_TU_LU_all();
return licheng;
}
public long countXZC(String directory,FrameOur fo){
Statistic xzc = new Statistic();
xzc.setInputDirectory(directory);
xzc.setFrameOur(fo);
xzc.countAllFile();
return xzc.getXZCCount();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -