📄 checkentirelyrepeatetrk.java
字号:
package net.aetherial.gis.our.auto.extend;
import net.aetherial.gis.our.auto.Auto;
import net.aetherial.gis.our.FrameOur;
import net.aetherial.gis.our.auto.check.repeattrk.EntirelyRepeate;
import java.util.Hashtable;
import net.aetherial.gis.surface.ItemValue;
import org.w3c.dom.Node;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class CheckEntirelyRepeateTrk
extends Auto {
private String directory = "";
/**
* 记录文件信息
*/
Hashtable hash = new Hashtable();
public CheckEntirelyRepeateTrk(FrameOur fo) {
this.setFrameOur(fo);
}
public void check() {
// this.checkAFile();
this.checkUniteFile();
}
/**
* 检查独立的文件
*/
public void checkAFile() {
if (super.input == null) {
System.out.println("super.input == null");
return;
}
EntirelyRepeate er = new EntirelyRepeate();
for (int i = 0; i < this.input.length; i++) {
this.open(this.input[i]);
System.out.println(this.input[i].getName() +
"********************************************************");
if (er.checkRepeatTrk()) {
this.print("在文件" + this.input[i].getName() + "中:");
this.print(er.getAndResetResult());
}
this.setMemoryReset();
}
}
/**
* 检查合并的文件
*/
public void checkUniteFile() {
if (super.input == null) {
System.out.println("super.input == null");
return;
}
EntirelyRepeate er = new EntirelyRepeate();
int trksLength = 0;
for (int i = 0; i < this.input.length; i++) {
this.open(this.input[i]);
System.out.println(this.input[i].getName() +
"********************************************************");
Node[] trks = ItemValue.getTracks();
for (int j = trksLength; j < trks.length; j++) {
hash.put(j + "", this.input[i].getName()+",第"+(j-trksLength+1)+"条航迹");
}
trksLength = trks.length;
}
er.setHash(this.hash);
if (er.checkRepeatTrk()) {
this.print(er.getAndResetResult());
}
this.setMemoryReset();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -